edu.stanford.nlp.tagger.maxent
Class TTags
java.lang.Object
edu.stanford.nlp.tagger.maxent.TTags
public class TTags
- extends Object
This class holds the POS tags, assigns them unique ids, and knows which tags
are open versus closed class.
Title: StanfordMaxEnt
Description: A Maximum Entropy Toolkit
Company: Stanford University
- Author:
- Kristina Toutanova
Constructor Summary |
TTags()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TTags
public TTags()
getOpenTags
public Set<String> getOpenTags()
- Returns a list of all open class tags
- Returns:
- set of open tags
add
protected int add(String tag)
getTag
public String getTag(int i)
save
protected void save(String filename,
HashMap<String,HashSet<String>> tagTokens)
save
protected void save(DataOutputStream file,
HashMap<String,HashSet<String>> tagTokens)
read
protected void read(String filename)
read
protected void read(DataInputStream file)
isClosed
protected boolean isClosed(String tag)
setLearnClosedTags
public void setLearnClosedTags(boolean learn)
setOpenClassTags
public void setOpenClassTags(String[] openClassTags)
setClosedClassTags
public void setClosedClassTags(String[] closedClassTags)
getSize
public int getSize()
Stanford NLP Group