Class AnalyzeOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class AnalyzeOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyzeOptions.BuilderBuilder. -
Method Summary
Modifier and Type Method Description Booleanclean()Gets the clean.BooleanfallbackToRaw()Gets the fallbackToRaw.Featuresfeatures()Gets the features.Stringhtml()Gets the html.Stringlanguage()Gets the language.LonglimitTextCharacters()Gets the limitTextCharacters.AnalyzeOptions.BuildernewBuilder()New builder.BooleanreturnAnalyzedText()Gets the returnAnalyzedText.Stringtext()Gets the text.Stringurl()Gets the url.Stringxpath()Gets the xpath.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a AnalyzeOptions builder
-
features
Gets the features.Specific features to analyze the document for.
- Returns:
- the features
-
text
Gets the text.The plain text to analyze. One of the `text`, `html`, or `url` parameters is required.
- Returns:
- the text
-
html
Gets the html.The HTML file to analyze. One of the `text`, `html`, or `url` parameters is required.
- Returns:
- the html
-
url
Gets the url.The webpage to analyze. One of the `text`, `html`, or `url` parameters is required.
- Returns:
- the url
-
clean
Gets the clean.Set this to `false` to disable webpage cleaning. For more information about webpage cleaning, see [Analyzing webpages](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-analyzing-webpages).
- Returns:
- the clean
-
xpath
Gets the xpath.An [XPath query](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-analyzing-webpages#xpath) to perform on `html` or `url` input. Results of the query will be appended to the cleaned webpage text before it is analyzed. To analyze only the results of the XPath query, set the `clean` parameter to `false`.
- Returns:
- the xpath
-
fallbackToRaw
Gets the fallbackToRaw.Whether to use raw HTML content if text cleaning fails.
- Returns:
- the fallbackToRaw
-
returnAnalyzedText
Gets the returnAnalyzedText.Whether or not to return the analyzed text.
- Returns:
- the returnAnalyzedText
-
language
Gets the language.ISO 639-1 code that specifies the language of your text. This overrides automatic language detection. Language support differs depending on the features you include in your analysis. For more information, see [Language support](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-language-support).
- Returns:
- the language
-
limitTextCharacters
Gets the limitTextCharacters.Sets the maximum number of characters that are processed by the service.
- Returns:
- the limitTextCharacters
-