|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.maxent.FileEventStream
opennlp.maxent.RealValueFileEventStream
public class RealValueFileEventStream
Constructor Summary | |
---|---|
RealValueFileEventStream(java.io.File file)
|
|
RealValueFileEventStream(java.lang.String fileName)
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Trains and writes a model based on the events in the specified event file. |
Event |
nextEvent()
Returns the next Event object held in this EventStream. |
static float[] |
parseContexts(java.lang.String[] contexts)
Parses the specified contexts and re-populates context array with features and returns the values for these features. |
Methods inherited from class opennlp.maxent.FileEventStream |
---|
hasNext, toLine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RealValueFileEventStream(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public RealValueFileEventStream(java.io.File file) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public static float[] parseContexts(java.lang.String[] contexts)
contexts
- The contexts with real values specified.
public Event nextEvent()
EventStream
nextEvent
in interface EventStream
nextEvent
in class FileEventStream
public static void main(java.lang.String[] args) throws java.io.IOException
args
- eventfile [iterations cuttoff]
java.io.IOException
- when the eventfile can not be read or the model file can not be written.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |