|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.maxent.PlainTextByLineDataStream
public class PlainTextByLineDataStream
This DataStream implementation will take care of reading a plain text file and returning the Strings between each new line character, which is what many Maxent applications need in order to create EventStreams.
Constructor Summary | |
---|---|
PlainTextByLineDataStream(java.io.Reader dataSource)
|
Method Summary | |
---|---|
boolean |
hasNext()
Test whether there are any Events remaining in this EventStream. |
java.lang.Object |
nextToken()
Returns the next slice of data held in this DataStream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlainTextByLineDataStream(java.io.Reader dataSource)
Method Detail |
---|
public java.lang.Object nextToken()
DataStream
nextToken
in interface DataStream
public boolean hasNext()
DataStream
hasNext
in interface DataStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |