|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.parse.LineByLine
LBJ2.nlp.POSBracketToVector
LBJ2.nlp.POSBracketToWord
ChildrenFromVectors
parser used in conjunction with POSBracketToVector.
public class POSBracketToWord
Use this parser to return Word objects given file names of
POS bracket form files to parse. These files are expected to have one
sentence per line, and the format of each line is as follows:
(pos1 spelling1) (pos2 spelling2) ... (posN spellingN)
It is also expected that there will be exactly one space between a part of
speech and the corresponding spelling and between a closing parenthesis
and an opening parenthesis.
| Field Summary | |
|---|---|
private Word |
currentWord
Deprecated. The next word to return, or null if we need a new sentence. |
| Fields inherited from class LBJ2.parse.LineByLine |
|---|
fileName, in |
| Constructor Summary | |
|---|---|
POSBracketToWord(java.lang.String file)
Deprecated. Adds the given file name to the queue. |
|
| Method Summary | |
|---|---|
java.lang.Object |
next()
Deprecated. Retrieves the next sentence from the files being parsed. |
| Methods inherited from class LBJ2.nlp.POSBracketToVector |
|---|
parsePOSBracketForm, parsePOSBracketForm |
| Methods inherited from class LBJ2.parse.LineByLine |
|---|
readLine, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Word currentWord
null if we need a new sentence.
| Constructor Detail |
|---|
public POSBracketToWord(java.lang.String file)
file - The file name to add to the queue.| Method Detail |
|---|
public java.lang.Object next()
next in interface Parsernext in class POSBracketToVectorLinkedVector representation of the next sentence.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||