public class TokenNameFinderModel extends BaseModel
TokenNameFinderModel
is the model used
by a learnable TokenNameFinder
.NameFinderME
Modifier 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.
|
AdaptiveFeatureGenerator |
createFeatureGenerators()
Deprecated.
use TokenNameFinderFactory.createFeatureGenerators instead!
|
TokenNameFinderFactory |
getFactory() |
MaxentModel |
getNameFinderModel()
Deprecated.
use getNameFinderSequenceModel instead. This method will be removed soon.
|
SequenceClassificationModel<String> |
getNameFinderSequenceModel() |
TokenNameFinderModel |
updateFeatureGenerator(byte[] descriptor) |
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, InvalidFormatException
IOException
InvalidFormatException
public TokenNameFinderModel(File modelFile) throws IOException, InvalidFormatException
IOException
InvalidFormatException
public TokenNameFinderModel(URL modelURL) throws IOException, InvalidFormatException
IOException
InvalidFormatException
@Deprecated public MaxentModel getNameFinderModel()
public SequenceClassificationModel<String> getNameFinderSequenceModel()
public TokenNameFinderFactory getFactory()
@Deprecated public AdaptiveFeatureGenerator createFeatureGenerators()
AdaptiveFeatureGenerator
. Usually this
is a set of generators contained in the AggregatedFeatureGenerator
.
Note:
The generators are created on every call to this method.public TokenNameFinderModel updateFeatureGenerator(byte[] descriptor)
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 © 2015 The Apache Software Foundation. All rights reserved.