|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.learn.SpanFE.Result edu.cmu.minorthird.text.learn.SpanFE.SpanResult
public static class SpanFE.SpanResult
An intermediate result of an SpanFE process where a span is being processed.
Field Summary |
---|
Fields inherited from class edu.cmu.minorthird.text.learn.SpanFE.Result |
---|
fe, name |
Constructor Summary | |
---|---|
SpanFE.SpanResult(java.lang.String[] name,
SpanFE fe,
Span s)
|
Method Summary | |
---|---|
SpanFE.SpanSetResult |
contains(java.lang.String type)
Move to a set of all spans of the named type that are contained by the current span. |
SpanFE.SpanResult |
doc()
Move to the document containing this span. |
void |
emit()
Terminates a feature extraction pipeline by actually emitting features. |
SpanFE.StringBagResult |
eq()
Move to the string value of the span. |
SpanFE.StringBagResult |
exactSize()
Make exact length of span a feature. |
Span |
getSpan()
|
SpanFE.SpanResult |
left()
Move to the span consisting of all tokens in the same document that precede the current span. |
SpanFE.SpanResult |
right()
Move to the span consisting of all tokens in the same document that follow the current span. |
SpanFE.StringBagResult |
size()
Make length of the span a feature. |
SpanFE.SpanResult |
subSpan(int lo,
int len)
Move to the specified subspan of the current span. |
SpanFE.TokenSetResult |
token(int index)
Move to the specified token inside the span. |
SpanFE.TokenSetResult |
tokens()
Move to the set of all tokens contained by this span. |
java.lang.String |
toString()
|
SpanFE.SpanResult |
trace()
|
Methods inherited from class edu.cmu.minorthird.text.learn.SpanFE.Result |
---|
doTrace, extend, extend, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpanFE.SpanResult(java.lang.String[] name, SpanFE fe, Span s)
Method Detail |
---|
public SpanFE.SpanResult trace()
public void emit()
SpanFE.Result
emit
in class SpanFE.Result
public java.lang.String toString()
toString
in class java.lang.Object
public Span getSpan()
public SpanFE.SpanResult left()
public SpanFE.SpanResult right()
public SpanFE.SpanResult doc()
public SpanFE.SpanSetResult contains(java.lang.String type)
public SpanFE.SpanResult subSpan(int lo, int len)
public SpanFE.TokenSetResult tokens()
public SpanFE.TokenSetResult token(int index)
public SpanFE.StringBagResult eq()
public SpanFE.StringBagResult size()
public SpanFE.StringBagResult exactSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |