public class TaggerConfig extends Properties
Modifier and Type | Class and Description |
---|---|
static class |
TaggerConfig.Mode |
defaults
Constructor and Description |
---|
TaggerConfig(Properties props) |
TaggerConfig(String... args) |
TaggerConfig(TaggerConfig old)
We force you to pass in a TaggerConfig rather than any other
superclass so that we know the arg error checking has already occurred
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, values
public static final String SEARCH
public static final String TAG_SEPARATOR
public static final String TOKENIZE
public static final String DEBUG
public static final String ITERATIONS
public static final String ARCH
public static final String WORD_FUNCTION
public static final String RARE_WORD_THRESH
public static final String MIN_FEATURE_THRESH
public static final String CUR_WORD_MIN_FEATURE_THRESH
public static final String RARE_WORD_MIN_FEATURE_THRESH
public static final String VERY_COMMON_WORD_THRESH
public static final String OCCURRING_TAGS_ONLY
public static final String POSSIBLE_TAGS_ONLY
public static final String SIGMA_SQUARED
public static final String ENCODING
public static final String LEARN_CLOSED_CLASS
public static final String CLOSED_CLASS_THRESHOLD
public static final String VERBOSE
public static final String VERBOSE_RESULTS
public static final String SGML
public static final String LANG
public static final String TOKENIZER_FACTORY
public static final String XML_INPUT
public static final String TAG_INSIDE
public static final String APPROXIMATE
public static final String TOKENIZER_OPTIONS
public static final String DEFAULT_REG_L1
public static final String OUTPUT_FILE
public static final String OUTPUT_FORMAT
public static final String OUTPUT_FORMAT_OPTIONS
public static final String NTHREADS
public static final String ENCODING_PROPERTY
public static final String TAG_SEPARATOR_PROPERTY
public TaggerConfig(TaggerConfig old)
public TaggerConfig(String... args)
public TaggerConfig(Properties props)
public void setProperties(Properties props)
public String getModel()
public String getFile()
public String getOutputFile()
public String getOutputFormat()
public String[] getOutputOptions()
public boolean getOutputVerbosity()
public boolean getOutputLemmas()
public boolean keepEmptySentences()
public boolean getOutputOptionsContains(String sought)
public String getSearch()
public double getSigmaSquared()
public int getIterations()
public int getRareWordThresh()
public int getMinFeatureThresh()
public int getCurWordMinFeatureThresh()
public int getRareWordMinFeatureThresh()
public int getVeryCommonWordThresh()
public boolean occurringTagsOnly()
public boolean possibleTagsOnly()
public String getLang()
public String[] getOpenClassTags()
public String[] getClosedClassTags()
public boolean getLearnClosedClassTags()
public int getClosedTagThreshold()
public String getArch()
public String getWordFunction()
public boolean getDebug()
public String getDebugPrefix()
public String getTokenizerFactory()
public static String getDefaultTagSeparator()
public final String getTagSeparator()
public boolean getTokenize()
public String getEncoding()
public double getRegL1()
public String[] getXMLInput()
public boolean getVerbose()
public boolean getVerboseResults()
public boolean getSGML()
public int getNThreads()
public String getTagInside()
public String getTokenizerOptions()
public boolean getTokenizerInvertible()
public double getDefaultScore()
public void dump()
public void dump(PrintStream stream)
public String getSentenceDelimiter()
public boolean useStdin()
public TaggerConfig.Mode getMode()
public void saveConfig(OutputStream os) throws IOException
os
- Where to write this TaggerConfigIOException
- If any IO problemspublic static TaggerConfig readConfig(DataInputStream stream) throws IOException, ClassNotFoundException
stream
- Where to read fromIOException
- Misc IOErrorClassNotFoundException
- Class error