|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.util.Span
org.cogroo.entities.HeadedSpan
public class HeadedSpan
| Constructor Summary | |
|---|---|
HeadedSpan(int s,
int e)
Initializes a new Span Object. |
|
HeadedSpan(int s,
int e,
String type)
|
|
HeadedSpan(opennlp.tools.util.Span span,
int offset)
Initializes a new Span object with an existing Span which is shifted by an offset. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getHead()
|
int |
hashCode()
|
void |
setHead(int headPosition)
|
String |
toString()
Generates a human readable string. |
| Methods inherited from class opennlp.tools.util.Span |
|---|
compareTo, contains, contains, crosses, getCoveredText, getEnd, getStart, getType, intersects, length, spansToStrings, spansToStrings, startsWith |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HeadedSpan(int s,
int e,
String type)
public HeadedSpan(int s,
int e)
s - start of span.e - end of span.
public HeadedSpan(opennlp.tools.util.Span span,
int offset)
span - offset - | Method Detail |
|---|
public void setHead(int headPosition)
public boolean equals(Object o)
equals in class opennlp.tools.util.Spanpublic int hashCode()
hashCode in class opennlp.tools.util.Spanpublic String toString()
toString in class opennlp.tools.util.Spanpublic int getHead()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||