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 | |
static String | |
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.
public static final String CHINESE
Chinese.
public static final String DUTCH
Dutch.
public static final String ENGLISH
English.
public static final String FRENCH
French.
public static final String GERMAN
German.
public static final String ITALIAN
Italian.
public static final String JAPANESE
Japanese.
public static final String KOREAN
Korean.
public static final String POLISH
Polish.
public static final String PORTUGUESE
Portuguese.
public static final String RUSSIAN
Russian.
public static final String SPANISH
Spanish.
public static final String THAI
Thai.
public static final String TURKISH
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
).