Class MarketNewsSummaryService

java.lang.Object
com.bluebell.greenhouse.radicle.services.market.news.MarketNewsSummaryService

@Service public class MarketNewsSummaryService extends Object
Service-layer cache boundary for market news article summaries.
Version:
3.0.3
Author:
Stephen Prizio
  • Constructor Details

    • MarketNewsSummaryService

      public MarketNewsSummaryService()
  • Method Details

    • summarize

      @Cacheable(cacheNames="marketNewsSummary", key="T(com.bluebell.greenhouse.platform.configuration.cache.market.news.MarketNewsCacheKeys).forSummary(#article, #maxSentences)", sync=true) public String summarize(String article, int maxSentences)
      Returns a TextRank summary for market news article content.
      Parameters:
      article - article content
      maxSentences - maximum number of summary sentences
      Returns:
      summarized article