Package opennlp.tools.ml.maxent
Schnittstelle 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 a
DataStream in a
Maxent application, but it can be used to support a wider variety of formats
in which your training data can be held.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanhasNext()Test whether there are any events remaining in thisDataStream.Returns the next slice of data held in thisDataStream.
-
Methodendetails
-
nextToken
Object nextToken()Returns the next slice of data held in thisDataStream.- Gibt zurück:
- The Object representing the data which is next in this
DataStream.
-
hasNext
boolean hasNext()Test whether there are any events remaining in thisDataStream.- Gibt zurück:
trueif thisDataStreamhas more data tokens,falseotherwise.
-