public class CoNLL02Format extends Object implements opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>
| Constructor and Description |
|---|
CoNLL02Format(String clearFeatures,
opennlp.tools.util.InputStreamFactory in)
Construct a Name Stream from a language and an input stream.
|
CoNLL02Format(String clearFeatures,
opennlp.tools.util.ObjectStream<String> lineStream)
Construct a Name Stream from a language and a
ObjectStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
opennlp.tools.namefind.NameSample |
read() |
void |
reset() |
public CoNLL02Format(String clearFeatures, opennlp.tools.util.ObjectStream<String> lineStream)
ObjectStream.clearFeatures - reset the adaptive featureslineStream - the streampublic CoNLL02Format(String clearFeatures, opennlp.tools.util.InputStreamFactory in) throws IOException
clearFeatures - reset the adaptive featuresin - an input stream to read dataIOException - the input stream exceptionpublic opennlp.tools.namefind.NameSample read()
throws IOException
read in interface opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>IOExceptionpublic void reset()
throws IOException,
UnsupportedOperationException
reset in interface opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>IOExceptionUnsupportedOperationExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>IOExceptionCopyright © 2016 IXA pipes. All rights reserved.