edu.stanford.nlp.tagger.maxent
Class Dictionary
java.lang.Object
edu.stanford.nlp.tagger.maxent.Dictionary
public class Dictionary
- extends Object
Maintains a map from words to tags and their counts.
- Author:
- Kristina Toutanova
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Dictionary
public Dictionary()
getDict
public HashMap<String,edu.stanford.nlp.tagger.maxent.TagCount> getDict()
add
public void add(String word,
String tag)
release
public void release()
addVPTaking
public void addVPTaking(String verb,
String tag,
String partWord)
addVThatTaking
public void addVThatTaking(String verb)
getCountPart
public int getCountPart(String verb)
getCountThat
public int getCountThat(String verb)
getCountIn
public int getCountIn(String verb)
getCountRB
public int getCountRB(String verb)
getCount
public int getCount(String word,
String tag)
getTags
public String[] getTags(String word)
get
public edu.stanford.nlp.tagger.maxent.TagCount get(String word)
known
public boolean known(String word)
getFirstTag
public String getFirstTag(String word)
sum
public int sum(String word)
save
public void save(String filename)
save
public void save(OutDataStreamFile file)
read
public void read(String filename)
read
public void read(InDataStreamFile file)
printAmbiguous
public void printAmbiguous()
setAmbClasses
public void setAmbClasses()
- This makes ambiguity classes from all words in the dictionary and remembers
their classes in the TagCounts
getAmbClass
public int getAmbClass(String word)
main
public static void main(String[] args)
Stanford NLP Group