EntityExtractorOptions

public class EntityExtractorOptions extends Object

Options for extracting entities from a piece of text.

Nested Class Summary

class EntityExtractorOptions.Builder Builder for EntityExtractorOptions instances. 
@interface EntityExtractorOptions.ModelIdentifier The list of models supported by entity extraction (e.g. 

Constant Summary

String ARABIC Arabic.
String CHINESE Chinese.
String DUTCH Dutch.
String ENGLISH English.
String FRENCH French.
String GERMAN German.
String ITALIAN Italian.
String JAPANESE Japanese.
String KOREAN Korean.
String POLISH Polish.
String PORTUGUESE Portuguese.
String RUSSIAN Russian.
String SPANISH Spanish.
String THAI Thai.
String TURKISH Turkish.

Public Method Summary

boolean
equals(Object o)
Indicates whether some other object is "equal to" this one.
static String
fromLanguageTag(String languageTag)
Returns a model identifier (e.g.
static List<String>
getAllModelIdentifiers()
Returns the list of all model identifiers (e.g.
int
hashCode()
Returns a hash code value for the object.
static String
toLanguageTag(String modelIdentifier)
Returns the BCP 47 language tag of the language covered by the model associated with this modelIdentifier (e.g.

Inherited Method Summary

Constants

public static final String ARABIC

Arabic.

Constant Value: "arabic"

public static final String CHINESE

Chinese.

Constant Value: "chinese"

public static final String DUTCH

Dutch.

Constant Value: "dutch"

public static final String ENGLISH

English.

Constant Value: "english"

public static final String FRENCH

French.

Constant Value: "french"

public static final String GERMAN

German.

Constant Value: "german"

public static final String ITALIAN

Italian.

Constant Value: "italian"

public static final String JAPANESE

Japanese.

Constant Value: "japanese"

public static final String KOREAN

Korean.

Constant Value: "korean"

public static final String POLISH

Polish.

Constant Value: "polish"

public static final String PORTUGUESE

Portuguese.

Constant Value: "portuguese"

public static final String RUSSIAN

Russian.

Constant Value: "russian"

public static final String SPANISH

Spanish.

Constant Value: "spanish"

public static final String THAI

Thai.

Constant Value: "thai"

public static final String TURKISH

Turkish.

Constant Value: "turkish"

Public Methods

public boolean equals (Object o)

Indicates whether some other object is "equal to" this one.

public static String fromLanguageTag (String languageTag)

Returns a model identifier (e.g. ARABIC) that identifies an entity extraction model that is suitable for extracting entities from text in the specified language, or null if the language tag is invalid or not supported by the Entity Extraction API.

Parameters
languageTag a BCP 47 language tag that identifies a particular language

public static List<String> getAllModelIdentifiers ()

Returns the list of all model identifiers (e.g. ARABIC) supported by EntityExtraction.

public int hashCode ()

Returns a hash code value for the object.

public static String toLanguageTag (String modelIdentifier)

Returns the BCP 47 language tag of the language covered by the model associated with this modelIdentifier (e.g. ARABIC).