|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.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 Spanpublic java.lang.Object getDocument()
getDocument in interface Spanpublic double getConfidence()
public boolean intersects(Span r)
intersects in interface Spanpublic boolean isSubspan(Span r)
isSubspan in interface Spanpublic Span intersection(Span r)
Span
intersection in interface Spanpublic int getEndIdx()
Span
getEndIdx in interface Spanpublic int getStartIdx()
Span
getStartIdx in interface Spanpublic 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 | |||||||||