org.cogroo.tools.featurizer
Class FeaturizerFactory

java.lang.Object
  extended by opennlp.tools.util.BaseToolFactory
      extended by org.cogroo.tools.featurizer.FeaturizerFactory
Direct Known Subclasses:
DefaultFeaturizerFactory, FSAFeaturizerFactory

public abstract class FeaturizerFactory
extends opennlp.tools.util.BaseToolFactory


Constructor Summary
FeaturizerFactory()
          Creates a FeaturizerFactory that provides the default implementation of the resources.
FeaturizerFactory(FeatureDictionary featureDictionary, String cgFlags)
          Creates a FeaturizerFactory.
 
Method Summary
static FeaturizerFactory create(String subclassName, FeatureDictionary posDictionary, String cgFlags)
           
 Map<String,Object> createArtifactMap()
           
 Map<String,opennlp.tools.util.model.ArtifactSerializer> createArtifactSerializersMap()
           
 Map<String,String> createManifestEntries()
           
 String getCGFlags()
           
 Set<String> getDictionaryPoisonedTags()
           
 FeatureDictionary getFeatureDictionary()
           
 FeaturizerContextGenerator getFeaturizerContextGenerator()
           
 opennlp.tools.util.SequenceValidator<WordTag> getSequenceValidator()
           
 void validateArtifactMap()
           
 
Methods inherited from class opennlp.tools.util.BaseToolFactory
create, create
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeaturizerFactory

public FeaturizerFactory()
Creates a FeaturizerFactory that provides the default implementation of the resources.


FeaturizerFactory

public FeaturizerFactory(FeatureDictionary featureDictionary,
                         String cgFlags)
Creates a FeaturizerFactory. Use this constructor to programmatically create a factory.

Method Detail

createArtifactSerializersMap

public Map<String,opennlp.tools.util.model.ArtifactSerializer> createArtifactSerializersMap()
Overrides:
createArtifactSerializersMap in class opennlp.tools.util.BaseToolFactory

createManifestEntries

public Map<String,String> createManifestEntries()
Overrides:
createManifestEntries in class opennlp.tools.util.BaseToolFactory

createArtifactMap

public Map<String,Object> createArtifactMap()
Overrides:
createArtifactMap in class opennlp.tools.util.BaseToolFactory

getCGFlags

public String getCGFlags()

getFeatureDictionary

public FeatureDictionary getFeatureDictionary()

getDictionaryPoisonedTags

public Set<String> getDictionaryPoisonedTags()

getFeaturizerContextGenerator

public FeaturizerContextGenerator getFeaturizerContextGenerator()

getSequenceValidator

public opennlp.tools.util.SequenceValidator<WordTag> getSequenceValidator()

validateArtifactMap

public void validateArtifactMap()
                         throws opennlp.tools.util.InvalidFormatException
Specified by:
validateArtifactMap in class opennlp.tools.util.BaseToolFactory
Throws:
opennlp.tools.util.InvalidFormatException

create

public static FeaturizerFactory create(String subclassName,
                                       FeatureDictionary posDictionary,
                                       String cgFlags)
                                throws opennlp.tools.util.InvalidFormatException
Throws:
opennlp.tools.util.InvalidFormatException


Copyright © 2012-2013 CoGrOO. All Rights Reserved.