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(java.io.File modelFile) |
TokenNameFinderModel(java.io.InputStream in) |
TokenNameFinderModel(java.lang.String languageCode,
MaxentModel nameFinderModel,
byte[] generatorDescriptor,
java.util.Map<java.lang.String,java.lang.Object> resources,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries) |
TokenNameFinderModel(java.lang.String languageCode,
MaxentModel nameFinderModel,
int beamSize,
byte[] generatorDescriptor,
java.util.Map<java.lang.String,java.lang.Object> resources,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries,
SequenceCodec<java.lang.String> seqCodec,
TokenNameFinderFactory factory) |
TokenNameFinderModel(java.lang.String languageCode,
MaxentModel nameFinderModel,
java.util.Map<java.lang.String,java.lang.Object> resources,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries) |
TokenNameFinderModel(java.lang.String languageCode,
SequenceClassificationModel<java.lang.String> nameFinderModel,
byte[] generatorDescriptor,
java.util.Map<java.lang.String,java.lang.Object> resources,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries,
SequenceCodec<java.lang.String> seqCodec,
TokenNameFinderFactory factory) |
TokenNameFinderModel(java.net.URL modelURL) |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.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<java.lang.String> |
getNameFinderSequenceModel() |
TokenNameFinderModel |
updateFeatureGenerator(byte[] descriptor) |
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize
public TokenNameFinderModel(java.lang.String languageCode, SequenceClassificationModel<java.lang.String> nameFinderModel, byte[] generatorDescriptor, java.util.Map<java.lang.String,java.lang.Object> resources, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries, SequenceCodec<java.lang.String> seqCodec, TokenNameFinderFactory factory)
public TokenNameFinderModel(java.lang.String languageCode, MaxentModel nameFinderModel, int beamSize, byte[] generatorDescriptor, java.util.Map<java.lang.String,java.lang.Object> resources, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries, SequenceCodec<java.lang.String> seqCodec, TokenNameFinderFactory factory)
public TokenNameFinderModel(java.lang.String languageCode, MaxentModel nameFinderModel, byte[] generatorDescriptor, java.util.Map<java.lang.String,java.lang.Object> resources, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries)
public TokenNameFinderModel(java.lang.String languageCode, MaxentModel nameFinderModel, java.util.Map<java.lang.String,java.lang.Object> resources, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries)
public TokenNameFinderModel(java.io.InputStream in) throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
public TokenNameFinderModel(java.io.File modelFile) throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
public TokenNameFinderModel(java.net.URL modelURL) throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
@Deprecated public MaxentModel getNameFinderModel()
public SequenceClassificationModel<java.lang.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 java.util.Map<java.lang.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 © 2010 - 2020 Adobe. All Rights Reserved