public class CoNLL03Format extends Object implements opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>
| Modifier and Type | Field and Description |
|---|---|
static String |
DOCSTART
The doc mark present in CoNLL 2003 datasets.
|
| Constructor and Description |
|---|
CoNLL03Format(String resetFeatures,
opennlp.tools.util.InputStreamFactory in)
Construct a CoNLL03 formatter.
|
CoNLL03Format(String resetFeatures,
opennlp.tools.util.ObjectStream<String> lineStream)
Construct a CoNLL03Format formatter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
opennlp.tools.namefind.NameSample |
read() |
void |
reset() |
public static final String DOCSTART
public CoNLL03Format(String resetFeatures, opennlp.tools.util.ObjectStream<String> lineStream)
resetFeatures - clear adaptive featureslineStream - the streampublic CoNLL03Format(String resetFeatures, opennlp.tools.util.InputStreamFactory in) throws IOException
resetFeatures - the features to be resetin - inputstream factoryIOException - the io 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.