Package apple.naturallanguage.enums
Class NLModelType
- java.lang.Object
-
- apple.naturallanguage.enums.NLModelType
-
public final class NLModelType extends java.lang.ObjectNLModel is a class representing a custom model that has been trained for tagging. Currently supported models follow one of two types. Classifier models, of type NLModelTypeClassifier, tag text at the sentence or higher level. Sequence models, of type NLModelTypeSequence, tag text at the token level. Currently NLModel objects can be created only from model files on disk or from MLModel objects. Each NLModel object has an associated NLModelConfiguration, which contains all the metadata about the model, including specifying whether it is a sequence or classifier model.
-
-
Field Summary
Fields Modifier and Type Field Description static longClassifierstatic longSequence
-
-
-
Field Detail
-
Classifier
public static final long Classifier
- See Also:
- Constant Field Values
-
Sequence
public static final long Sequence
- See Also:
- Constant Field Values
-
-