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.


Field Summary
 int c
           
static int count
           
 double p
           
 List tagSet
           
 
Constructor Summary
XTagSet()
           
XTagSet(List sentence)
           
XTagSet(List tagSet, double p)
           
 
Method Summary
static boolean Collision(XTagSet ts1, XTagSet ts2)
           
 int compareTo(Object o)
           
 int GetEnd(String tag)
           
 XTagSet GetOneTagCopy(String tag)
           
static List GetOverlaps(List tagSets)
           
 int GetStart(String tag)
           
 List GetTags()
           
static XTagSet Merge(XTagSet ts1, XTagSet ts2)
           
static boolean Similar(XTagSet ts1, XTagSet ts2, int s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

public static int count

tagSet

public List tagSet

p

public double p

c

public int c
Constructor Detail

XTagSet

public XTagSet()

XTagSet

public XTagSet(List tagSet,
               double p)

XTagSet

public XTagSet(List sentence)
Method Detail

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