|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.extract.LabeledSpan
public class LabeledSpan
Created: Oct 12, 2004
Constructor Summary | |
---|---|
LabeledSpan(Span span,
Label label,
boolean isBackground)
|
|
LabeledSpan(Span span,
Label label,
boolean isBackground,
double confidence)
|
Method Summary | |
---|---|
double |
getConfidence()
|
java.lang.Object |
getDocument()
|
int |
getEndIdx()
Returns an integer index identifying the end of this span. |
Label |
getLabel()
|
Span |
getSpan()
|
int |
getStartIdx()
Returns an integer index identifying the start of this span. |
java.lang.String |
getText()
Returns a textual representatio of the span, suitable for XML output, e.g. |
Span |
intersection(Span r)
Returns a new span that is the intersection of this span and another. |
boolean |
intersects(Span r)
|
boolean |
isBackground()
|
boolean |
isSubspan(Span r)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LabeledSpan(Span span, Label label, boolean isBackground)
public LabeledSpan(Span span, Label label, boolean isBackground, double confidence)
Method Detail |
---|
public Span getSpan()
public Label getLabel()
public java.lang.String getText()
Span
getText
in interface Span
public java.lang.Object getDocument()
getDocument
in interface Span
public double getConfidence()
public boolean intersects(Span r)
intersects
in interface Span
public boolean isSubspan(Span r)
isSubspan
in interface Span
public Span intersection(Span r)
Span
intersection
in interface Span
public int getEndIdx()
Span
getEndIdx
in interface Span
public int getStartIdx()
Span
getStartIdx
in interface Span
public boolean isBackground()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |