public class TokenNameFinderModel extends BaseModel
TokenNameFinderModel
is the model used
by a learnable TokenNameFinder
.NameFinderME
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
TokenNameFinderModel.FeatureGeneratorCreationError |
TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
Constructor and Description |
---|
TokenNameFinderModel(File modelFile) |
TokenNameFinderModel(InputStream in) |
TokenNameFinderModel(String languageCode,
MaxentModel nameFinderModel,
byte[] generatorDescriptor,
Map<String,Object> resources,
Map<String,String> manifestInfoEntries) |
TokenNameFinderModel(String languageCode,
MaxentModel nameFinderModel,
int beamSize,
byte[] generatorDescriptor,
Map<String,Object> resources,
Map<String,String> manifestInfoEntries,
SequenceCodec<String> seqCodec,
TokenNameFinderFactory factory) |
TokenNameFinderModel(String languageCode,
MaxentModel nameFinderModel,
Map<String,Object> resources,
Map<String,String> manifestInfoEntries) |
TokenNameFinderModel(String languageCode,
SequenceClassificationModel<String> nameFinderModel,
byte[] generatorDescriptor,
Map<String,Object> resources,
Map<String,String> manifestInfoEntries,
SequenceCodec<String> seqCodec,
TokenNameFinderFactory factory) |
TokenNameFinderModel(URL modelURL) |
Modifier and Type | Method and Description |
---|---|
static Map<String,ArtifactSerializer> |
createArtifactSerializers()
Create the artifact serializers.
|
TokenNameFinderFactory |
getFactory() |
SequenceClassificationModel<String> |
getNameFinderSequenceModel() |
SequenceCodec<String> |
getSequenceCodec() |
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize
public TokenNameFinderModel(String languageCode, SequenceClassificationModel<String> nameFinderModel, byte[] generatorDescriptor, Map<String,Object> resources, Map<String,String> manifestInfoEntries, SequenceCodec<String> seqCodec, TokenNameFinderFactory factory)
public TokenNameFinderModel(String languageCode, MaxentModel nameFinderModel, int beamSize, byte[] generatorDescriptor, Map<String,Object> resources, Map<String,String> manifestInfoEntries, SequenceCodec<String> seqCodec, TokenNameFinderFactory factory)
public TokenNameFinderModel(String languageCode, MaxentModel nameFinderModel, byte[] generatorDescriptor, Map<String,Object> resources, Map<String,String> manifestInfoEntries)
public TokenNameFinderModel(String languageCode, MaxentModel nameFinderModel, Map<String,Object> resources, Map<String,String> manifestInfoEntries)
public TokenNameFinderModel(InputStream in) throws IOException
IOException
public TokenNameFinderModel(File modelFile) throws IOException
IOException
public TokenNameFinderModel(URL modelURL) throws IOException
IOException
public SequenceClassificationModel<String> getNameFinderSequenceModel()
public SequenceCodec<String> getSequenceCodec()
public TokenNameFinderFactory getFactory()
public static Map<String,ArtifactSerializer> createArtifactSerializers()
W2VClassesDictionary
objects, the convention is to add its element tag name as key of the serializer map.
For example, the element tag name for the WordClusterFeatureGenerator
which
uses W2VClassesDictionary
objects serialized by the W2VClassesDictionarySerializer
is 'wordcluster', which is the key used to add the serializer to the map.Copyright © 2017 The Apache Software Foundation. All rights reserved.