Class TextDocumentInput
java.lang.Object
com.azure.ai.textanalytics.models.TextDocumentInput
Contains an input document to be analyzed by the service.
-
Constructor Summary
ConstructorsConstructorDescriptionTextDocumentInput(String id, String text) Creates aTextDocumentInputmodel that describes the documents. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the id property: A unique, non-empty document identifier.Get the language property: (Optional) This is the 2-letter ISO 639-1 representation of a language.getText()Get the text property: The document to process.setLanguage(String language) Set the language property: (Optional) This is the 2-letter ISO 639-1 representation of a language.toString()
-
Constructor Details
-
TextDocumentInput
Creates aTextDocumentInputmodel that describes the documents.- Parameters:
id- A unique, non-empty document identifier.text- The document to process.
-
-
Method Details
-
getId
Get the id property: A unique, non-empty document identifier.- Returns:
- The id value.
-
getText
Get the text property: The document to process.- Returns:
- The text value.
-
getLanguage
Get the language property: (Optional) This is the 2-letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default.- Returns:
- The language value.
-
setLanguage
Set the language property: (Optional) This is the 2-letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, uses "en" for English as default. Per-document language will take precedence over whole batch language. See Language for supported languages in Language API.- Parameters:
language- Optional. This is the 2-letter ISO 639-1 representation of a language.- Returns:
- The object
TextDocumentInputitself.
-
toString
-