Class AnalysisScheme

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class AnalysisScheme
    extends Object
    implements Serializable, Cloneable

    Configuration information for an analysis scheme. Each analysis scheme has a unique name and specifies the language of the text to be processed. The following options can be configured for an analysis scheme: Synonyms, Stopwords, StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.

    See Also:
    Serialized Form
    • Constructor Detail

      • AnalysisScheme

        public AnalysisScheme()
    • Method Detail

      • setAnalysisSchemeName

        public void setAnalysisSchemeName​(String analysisSchemeName)
        Parameters:
        analysisSchemeName -
      • getAnalysisSchemeName

        public String getAnalysisSchemeName()
        Returns:
      • withAnalysisSchemeName

        public AnalysisScheme withAnalysisSchemeName​(String analysisSchemeName)
        Parameters:
        analysisSchemeName -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAnalysisSchemeLanguage

        public void setAnalysisSchemeLanguage​(String analysisSchemeLanguage)
        Parameters:
        analysisSchemeLanguage -
        See Also:
        AnalysisSchemeLanguage
      • withAnalysisSchemeLanguage

        public AnalysisScheme withAnalysisSchemeLanguage​(String analysisSchemeLanguage)
        Parameters:
        analysisSchemeLanguage -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AnalysisSchemeLanguage
      • withAnalysisSchemeLanguage

        public AnalysisScheme withAnalysisSchemeLanguage​(AnalysisSchemeLanguage analysisSchemeLanguage)
        Parameters:
        analysisSchemeLanguage -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AnalysisSchemeLanguage
      • setAnalysisOptions

        public void setAnalysisOptions​(AnalysisOptions analysisOptions)
        Parameters:
        analysisOptions -
      • getAnalysisOptions

        public AnalysisOptions getAnalysisOptions()
        Returns:
      • withAnalysisOptions

        public AnalysisScheme withAnalysisOptions​(AnalysisOptions analysisOptions)
        Parameters:
        analysisOptions -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object