public class RunTagger
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RunTagger.Decoder |
| Modifier and Type | Field and Description |
|---|---|
RunTagger.Decoder |
decoder |
boolean |
justTokenize |
boolean |
noOutput |
boolean |
showConfidence |
| Constructor and Description |
|---|
RunTagger() |
| Modifier and Type | Method and Description |
|---|---|
void |
detectAndSetInputFormat(java.lang.String tweetData) |
static void |
die(java.lang.String message) |
void |
evaluateSentenceTagging(Sentence lSent,
ModelSentence mSent) |
void |
finalizeOptions() |
void |
goDecode(ModelSentence mSent)
Runs the correct algorithm (make config option perhaps)
|
static void |
main(java.lang.String[] args) |
void |
outputJustTagging(Sentence lSent,
ModelSentence mSent)
assume mSent's labels hold the tagging.
|
void |
outputPrependedTagging(Sentence lSent,
ModelSentence mSent,
boolean suppressTags,
java.lang.String inputLine)
assume mSent's labels hold the tagging.
|
void |
runTagger() |
void |
runTaggerInEvalMode() |
static void |
usage() |
static void |
usage(java.lang.String extra) |
static java.util.HashSet<java.lang.String> |
wordsInCluster() |
public boolean noOutput
public boolean justTokenize
public RunTagger.Decoder decoder
public boolean showConfidence
public RunTagger()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static void die(java.lang.String message)
public void detectAndSetInputFormat(java.lang.String tweetData)
throws java.io.IOException
java.io.IOExceptionpublic void runTagger()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void goDecode(ModelSentence mSent)
public void runTaggerInEvalMode()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void evaluateSentenceTagging(Sentence lSent, ModelSentence mSent)
public void outputJustTagging(Sentence lSent, ModelSentence mSent)
public void outputPrependedTagging(Sentence lSent, ModelSentence mSent, boolean suppressTags, java.lang.String inputLine)
lSent - mSent - inputLine - -- assume does NOT have trailing newline. (default from java's readLine)public static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void finalizeOptions()
throws java.io.IOException
java.io.IOExceptionpublic static void usage()
public static void usage(java.lang.String extra)
public static java.util.HashSet<java.lang.String> wordsInCluster()