LBJ2.nlp
Class POSBracketToWord

java.lang.Object
  extended by LBJ2.parse.LineByLine
      extended by LBJ2.nlp.POSBracketToVector
          extended by LBJ2.nlp.POSBracketToWord
All Implemented Interfaces:
Parser

Deprecated. As of LBJ release 2.0.4, the functionality of this class has been superceded by the ChildrenFromVectors parser used in conjunction with POSBracketToVector.

public class POSBracketToWord
extends POSBracketToVector

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

currentWord

private Word currentWord
Deprecated. 
The next word to return, or null if we need a new sentence.

Constructor Detail

POSBracketToWord

public POSBracketToWord(java.lang.String file)
Deprecated. 
Adds the given file name to the queue.

Parameters:
file - The file name to add to the queue.
Method Detail

next

public java.lang.Object next()
Deprecated. 
Retrieves the next sentence from the files being parsed.

Specified by:
next in interface Parser
Overrides:
next in class POSBracketToVector
Returns:
A LinkedVector representation of the next sentence.