TextDocument¶
- class oci.ai_language.models.TextDocument(**kwargs)¶
Bases:
objectThe document details for language service call.
Methods:
__init__(**kwargs)Initializes a new TextDocument object with values from keyword arguments.
Attributes:
[Required] Gets the key of this TextDocument.
Gets the language_code of this TextDocument.
[Required] Gets the text of this TextDocument.
- __init__(**kwargs)¶
Initializes a new TextDocument object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
key (str) – The value to assign to the key property of this TextDocument.
text (str) – The value to assign to the text property of this TextDocument.
language_code (str) – The value to assign to the language_code property of this TextDocument.
- property key¶
[Required] Gets the key of this TextDocument. Document unique identifier defined by the user.
- Returns
The key of this TextDocument.
- Return type
str
- property language_code¶
Gets the language_code of this TextDocument. Language code of the document. Please refer to respective model API documentation for supported languages.
- Returns
The language_code of this TextDocument.
- Return type
str
- property text¶
[Required] Gets the text of this TextDocument. Document text for language service call.
- Returns
The text of this TextDocument.
- Return type
str