Class AnalysisConfig


  • public class AnalysisConfig
    extends Object
    Capture how the Analysis is configured. Attributes on the analysis are typically frozen once training has started.
    • Field Detail

      • MAX_CARDINALITY_DEFAULT

        public static final int MAX_CARDINALITY_DEFAULT
        The default value for the maximum Cardinality tracked.
        See Also:
        Constant Field Values
      • MAX_OUTLIERS_DEFAULT

        public static final int MAX_OUTLIERS_DEFAULT
        The default value for the maximum # of outliers tracked.
        See Also:
        Constant Field Values
      • MAX_SHAPES_DEFAULT

        public static final int MAX_SHAPES_DEFAULT
        The default value for the maximum number of shapes tracked.
        See Also:
        Constant Field Values
      • DETECTION_THRESHOLD_DEFAULT

        public static final int DETECTION_THRESHOLD_DEFAULT
        The default value for the detection threshold.
        See Also:
        Constant Field Values
      • DETECT_WINDOW_DEFAULT

        public static final int DETECT_WINDOW_DEFAULT
        The default value for the number of samples to collect before making a type determination.
        See Also:
        Constant Field Values
      • MAX_INPUT_LENGTH_DEFAULT

        public static final int MAX_INPUT_LENGTH_DEFAULT
        The default value for the maximum length of input to process.
        See Also:
        Constant Field Values
      • MAX_INPUT_LENGTH_MINIMUM

        public static final int MAX_INPUT_LENGTH_MINIMUM
        The minimum value for the maximum length of input to process.
        See Also:
        Constant Field Values
    • Method Detail

      • configure

        public void configure​(TextAnalyzer.Feature feature,
                              boolean state)
        Method for changing state of an on/off feature for this TextAnalyzer.
        Parameters:
        feature - The feature to be set.
        state - The new state of the feature.
      • isEnabled

        public boolean isEnabled​(TextAnalyzer.Feature feature)
        Method for checking whether given TextAnalyzer feature is enabled.
        Parameters:
        feature - The feature to be tested.
        Returns:
        Whether the identified feature is enabled.
      • getDetectWindow

        public int getDetectWindow()
      • setDetectWindow

        public int setDetectWindow​(int detectWindow)
      • getMaxCardinality

        public int getMaxCardinality()
      • setMaxCardinality

        public int setMaxCardinality​(int maxCardinality)
      • getMaxInputLength

        public int getMaxInputLength()
      • setMaxInputLength

        public int setMaxInputLength​(int maxInputLength)
      • getMaxOutliers

        public int getMaxOutliers()
      • setMaxOutliers

        public int setMaxOutliers​(int maxOutliers)
      • getThreshold

        public int getThreshold()
      • setThreshold

        public int setThreshold​(int threshold)
      • getLocaleTag

        public String getLocaleTag()
      • setLocaleTag

        public void setLocaleTag​(String localeTag)
      • getMaxShapes

        public int getMaxShapes()
      • setMaxShapes

        public int setMaxShapes​(int maxShapes)
      • getTraceOptions

        public String getTraceOptions()
      • setTraceOptions

        public void setTraceOptions​(String traceOptions)
      • getDebug

        public int getDebug()
      • setDebug

        public void setDebug​(int debug)
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Object