|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.nlp.seg.PlainToTokenParser
public class PlainToTokenParser
This parser takes the Words in the representation created
by another Parser and creates a new representation
consisting of Tokens. The input parser is actually expected to
return a LinkedVector populated by
Words with each call to Parser.next().
The Tokens returned by calls to this class's next()
method are also contained in LinkedVectors representing
sentences which are accessible via the
LinkedChild.parent field.
| Field Summary | |
|---|---|
protected Token |
next
The next token to return. |
protected Parser |
parser
A parser creating a representation consisting of Words. |
| Constructor Summary | |
|---|---|
PlainToTokenParser(Parser p)
The only constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
next()
This method returns Tokens until the input is exhausted, at
which point it returns null. |
void |
reset()
Sets this parser back to the beginning of the raw data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Parser parser
Words.
protected Token next
| Constructor Detail |
|---|
public PlainToTokenParser(Parser p)
p - A parser creating a representation consisting of
Words.| Method Detail |
|---|
public java.lang.Object next()
Tokens until the input is exhausted, at
which point it returns null.
next in interface Parserpublic void reset()
reset in interface Parser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||