LanguageIdentification

public class LanguageIdentification extends Object

Entry point to get a LanguageIdentifier that identifies language for a given text input.

A LanguageIdentifier is created via getClient(LanguageIdentificationOptions) or getClient() if you wish to use the default options. For example, the code below creates a LanguageIdentifier with default options.

Example:

LanguageIdentifier languageIdentifier = LanguageIdentification.getClient();
 

Public Method Summary

static LanguageIdentifier
getClient(LanguageIdentificationOptions options)
Gets an instance of LanguageIdentifier, which identifies the language for a given text input, with the given options.
static LanguageIdentifier
getClient()
Gets an instance of LanguageIdentifier, which identifies the language for a given text input.

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

public static LanguageIdentifier getClient (LanguageIdentificationOptions options)

Gets an instance of LanguageIdentifier, which identifies the language for a given text input, with the given options.

To release the resources associated with an LanguageIdentifier, you should ensure that LanguageIdentifier.close() is called on the resulting LanguageIdentifier instance once it will no longer be used.

public static LanguageIdentifier getClient ()

Gets an instance of LanguageIdentifier, which identifies the language for a given text input.