Class TextDocumentInput
- java.lang.Object
-
- com.azure.ai.textanalytics.models.TextDocumentInput
-
public final class TextDocumentInput extends Object
Contains an input document to be analyzed by the service.
-
-
Constructor Summary
Constructors Constructor Description TextDocumentInput(String id, String text)
Creates aTextDocumentInput
model that describes the documents.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Get the id property: A unique, non-empty document identifier.String
getLanguage()
Get the language property: (Optional) This is the 2 letter ISO 639-1 representation of a language.String
getText()
Get the text property: The document to process.TextDocumentInput
setLanguage(String language)
Set the language property: (Optional) This is the 2 letter ISO 639-1 representation of a language.String
toString()
-
-
-
Method Detail
-
getId
public String getId()
Get the id property: A unique, non-empty document identifier.- Returns:
- The id value.
-
getText
public String getText()
Get the text property: The document to process.- Returns:
- The text value.
-
getLanguage
public String 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
public TextDocumentInput setLanguage(String language)
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, use "en" for English as default.- Parameters:
language
- Optional. This is the 2 letter ISO 639-1 representation of a language.- Returns:
- The object
TextDocumentInput
itself.
-
-