Class PhrasesIdentificationComponent.PhrasesContextData

  • Enclosing class:
    PhrasesIdentificationComponent

    public static final class PhrasesIdentificationComponent.PhrasesContextData
    extends Object
    Simple container for all request options and data this component needs to store in the Request Context
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Method Detail

      • summarize

        public String summarize​(List<PhrasesIdentificationComponent.Phrase> results)
        Given a list of phrases to be returned to the user, summarizes those phrases by decorating the original input string to indicate where the identified phrases exist, using summaryPre and summaryPost
        Parameters:
        results - a list of (non overlapping) Phrases that have been identified, sorted from highest scoring to lowest
        Returns:
        the original user input, decorated to indicate the identified phrases