public class StringArraysToWords extends Object implements edu.illinois.cs.cogcomp.lbjava.parse.Parser
Strings, converts the Strings to Words,
and returns LinkedVectors of Words.| Modifier and Type | Field and Description |
|---|---|
protected edu.illinois.cs.cogcomp.lbjava.parse.Parser |
parser
A parser that returns arrays of
Strings. |
| Constructor and Description |
|---|
StringArraysToWords(edu.illinois.cs.cogcomp.lbjava.parse.Parser p)
Creates the parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees any resources this parser may be holding.
|
static edu.illinois.cs.cogcomp.lbjava.parse.LinkedVector |
convert(String[] a)
|
Object |
next()
Returns the next array of
Words. |
void |
reset()
Sets this parser back to the beginning of the raw data.
|
protected edu.illinois.cs.cogcomp.lbjava.parse.Parser parser
Strings.public StringArraysToWords(edu.illinois.cs.cogcomp.lbjava.parse.Parser p)
p - A parser that returns arrays of Strings.public Object next()
Words.next in interface edu.illinois.cs.cogcomp.lbjava.parse.ParserLinkedVector of Words parsed, or
null if there are no more children in the stream.public static edu.illinois.cs.cogcomp.lbjava.parse.LinkedVector convert(String[] a)
a - An array of Strings.LinkedVector of Words corresponding to the
input Strings.public void reset()
reset in interface edu.illinois.cs.cogcomp.lbjava.parse.Parserpublic void close()
close in interface edu.illinois.cs.cogcomp.lbjava.parse.ParserCopyright © 2017. All rights reserved.