Class AnalyzeOptions.Builder

  • Enclosing class:
    AnalyzeOptions

    public static class AnalyzeOptions.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public AnalyzeOptions build()
        Builds a AnalyzeOptions.
        Returns:
        the analyzeOptions
      • addUnstructured

        public AnalyzeOptions.Builder addUnstructured​(UnstructuredContainer unstructured)
        Adds an unstructured to unstructured.
        Parameters:
        unstructured - the new unstructured
        Returns:
        the AnalyzeOptions builder
      • addAnnotatorFlows

        public AnalyzeOptions.Builder addAnnotatorFlows​(AnnotatorFlow annotatorFlows)
        Adds an annotatorFlows to annotatorFlows.
        Parameters:
        annotatorFlows - the new annotatorFlows
        Returns:
        the AnalyzeOptions builder
      • unstructured

        public AnalyzeOptions.Builder unstructured​(java.util.List<UnstructuredContainer> unstructured)
        Set the unstructured. Existing unstructured will be replaced.
        Parameters:
        unstructured - the unstructured
        Returns:
        the AnalyzeOptions builder
      • annotatorFlows

        public AnalyzeOptions.Builder annotatorFlows​(java.util.List<AnnotatorFlow> annotatorFlows)
        Set the annotatorFlows. Existing annotatorFlows will be replaced.
        Parameters:
        annotatorFlows - the annotatorFlows
        Returns:
        the AnalyzeOptions builder
      • returnAnalyzedText

        public AnalyzeOptions.Builder returnAnalyzedText​(boolean returnAnalyzedText)
        Set the returnAnalyzedText.
        Parameters:
        returnAnalyzedText - whether to return the submitted text
        Returns:
        the AnalyzeOptionsbuilder
      • debug

        public AnalyzeOptions.Builder debug​(boolean debug)
        Set the debug flag.
        Parameters:
        debug - enable analyze debug flag
        Returns:
        the AnalyzeOptionsbuilder