edu.stanford.nlp.ie.pcfg
Class XTagSet
java.lang.Object
|
+--edu.stanford.nlp.ie.pcfg.XTagSet
- All Implemented Interfaces:
- Comparable
- public class XTagSet
- extends Object
- implements Comparable
A TagSet and its probability. A TagSet only makes sense when
associated with a particular sentence. In this case, a TagSet
describes what tags get assigned to each word in the sentence.
For example, TagSet[0] describes what tags get assigned to the first
word in the sentence.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
count
public static int count
tagSet
public List tagSet
p
public double p
c
public int c
XTagSet
public XTagSet()
XTagSet
public XTagSet(List tagSet,
double p)
XTagSet
public XTagSet(List sentence)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
GetTags
public List GetTags()
GetOneTagCopy
public XTagSet GetOneTagCopy(String tag)
GetStart
public int GetStart(String tag)
GetEnd
public int GetEnd(String tag)
Similar
public static boolean Similar(XTagSet ts1,
XTagSet ts2,
int s)
Collision
public static boolean Collision(XTagSet ts1,
XTagSet ts2)
Merge
public static XTagSet Merge(XTagSet ts1,
XTagSet ts2)
GetOverlaps
public static List GetOverlaps(List tagSets)
Stanford NLP Group