public class StringArraysToWords extends Object implements edu.illinois.cs.cogcomp.lbjava.parse.Parser
String
s, converts the String
s to Word
s,
and returns LinkedVector
s of Word
s.Modifier and Type | Field and Description |
---|---|
protected edu.illinois.cs.cogcomp.lbjava.parse.Parser |
parser
A parser that returns arrays of
String s. |
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
Word s. |
void |
reset()
Sets this parser back to the beginning of the raw data.
|
protected edu.illinois.cs.cogcomp.lbjava.parse.Parser parser
String
s.public StringArraysToWords(edu.illinois.cs.cogcomp.lbjava.parse.Parser p)
p
- A parser that returns arrays of String
s.public Object next()
Word
s.next
in interface edu.illinois.cs.cogcomp.lbjava.parse.Parser
LinkedVector
of Word
s 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 String
s.LinkedVector
of Word
s corresponding to the
input String
s.public void reset()
reset
in interface edu.illinois.cs.cogcomp.lbjava.parse.Parser
public void close()
close
in interface edu.illinois.cs.cogcomp.lbjava.parse.Parser
Copyright © 2017. All rights reserved.