Class and Description |
---|
com.basistech.rosette.languageidentifier.LanguageIdentifier
Use the
LanguageIdentifierBuilder to create an
Annotator .
Rosette Language Identifier - the starting point for identification of language + encoding + script . You can obtain a LanguageIdentifier instance from a LanguageIdentifierFactory instance. Once that is done, LanguageIdentifier settings can be configured on a per-instance basis. LanguageIdentifier instances cannot be shared by different threads.Typical Usage: LanguageIdentifierFactory lif = new LanguageIdentifierFactory(validLicense); LanguageIdentifier LanguageId = lif.create(); Result[] results = languageId.detect("Data string");The return value of any of the detect methods is an ordered array of Result objects. Each Result represents a possibility for the detected language and encoding. (see com.basistech.rli.Result )
Any call to a detect method takes the given input and forms an InputProfile. Characteristics of the InputProfile and Results may be set within the LanguageIdentifier using set methods before calling detect:
|
com.basistech.rosette.languageidentifier.LanguageIdentifierFactory
Use the
LanguageIdentifierBuilder to create an
Annotator .
Factory to create LanguageIdentifier instances.
Set the license with the factory, and set LanguageIdentifier
options within the instance. |
com.basistech.rosette.languageidentifier.RLICmd.LanguageWeightAdjustmentOptionHandler |
Enum and Description |
---|
com.basistech.rosette.languageidentifier.ReturnCode |
Exceptions and Description |
---|
com.basistech.rosette.languageidentifier.LanguageIdentificationException |
com.basistech.rosette.languageidentifier.NoMatchException |
com.basistech.rosette.languageidentifier.NotEnoughDataException |
Constructor and Description |
---|
com.basistech.rosette.RosetteUnsupportedLanguageException()
As of version 35.5.0. Use constructors with
LanguageCode |
com.basistech.rosette.RosetteUnsupportedLanguageException(String)
As of version 35.5.0. Use constructors with
LanguageCode |
com.basistech.rosette.RosetteUnsupportedLanguageException(String, Throwable)
As of version 35.5.0. Use constructors with
LanguageCode |
com.basistech.rosette.RosetteUnsupportedLanguageException(Throwable)
As of version 35.5.0. Use constructors with
LanguageCode |
Copyright © 2016 Basis Technology Corporation. All Rights Reserved.