|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.maxent.BasicEventStream
public class BasicEventStream
A object which can deliver a stream of training events assuming that each event is represented as a space separated list containing all the contextual predicates, with the last item being the outcome. e.g.:
cp_1 cp_2 ... cp_n outcome
Constructor Summary | |
---|---|
BasicEventStream(DataStream ds)
|
Method Summary | |
---|---|
boolean |
hasNext()
Test whether there are any Events remaining in this EventStream. |
Event |
nextEvent()
Returns the next Event object held in this EventStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicEventStream(DataStream ds)
Method Detail |
---|
public Event nextEvent()
nextEvent
in interface EventStream
public boolean hasNext()
hasNext
in interface EventStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |