EntityDocumentResult

class oci.ai_language.models.EntityDocumentResult(**kwargs)

Bases: object

The document response for entities detect call.

Methods:

__init__(**kwargs)

Initializes a new EntityDocumentResult object with values from keyword arguments.

Attributes:

entities

[Required] Gets the entities of this EntityDocumentResult.

key

[Required] Gets the key of this EntityDocumentResult.

language_code

[Required] Gets the language_code of this EntityDocumentResult.

__init__(**kwargs)

Initializes a new EntityDocumentResult 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 EntityDocumentResult.

  • entities (list[oci.ai_language.models.HierarchicalEntity]) – The value to assign to the entities property of this EntityDocumentResult.

  • language_code (str) – The value to assign to the language_code property of this EntityDocumentResult.

property entities

[Required] Gets the entities of this EntityDocumentResult. List of detected entities.

Returns

The entities of this EntityDocumentResult.

Return type

list[oci.ai_language.models.HierarchicalEntity]

property key

[Required] Gets the key of this EntityDocumentResult. Document unique identifier defined by the user.

Returns

The key of this EntityDocumentResult.

Return type

str

property language_code

[Required] Gets the language_code of this EntityDocumentResult. Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR : Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he : Hebrew

Returns

The language_code of this EntityDocumentResult.

Return type

str