Package opennlp.tools.ml.maxent
Interface DataStream
-
public interface DataStream
An interface for objects which can deliver a stream of training data to be supplied to an EventStream. It is not necessary to use aDataStream
in a Maxent application, but it can be used to support a wider variety of formats in which your training data can be held.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasNext()
Test whether there are any events remaining in thisDataStream
.Object
nextToken()
Returns the next slice of data held in thisDataStream
.
-
-
-
Method Detail
-
nextToken
Object nextToken()
Returns the next slice of data held in thisDataStream
.- Returns:
- The Object representing the data which is next in this
DataStream
.
-
hasNext
boolean hasNext()
Test whether there are any events remaining in thisDataStream
.- Returns:
true
if thisDataStream
has more data tokens,false
otherwise.
-
-