public class CoNLL03Format extends Object implements opennlp.tools.util.ObjectStream<SequenceLabelSample>
| 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.
|
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 SequenceLabelSample read() throws IOException
read in interface opennlp.tools.util.ObjectStream<SequenceLabelSample>IOExceptionpublic void reset()
throws IOException,
UnsupportedOperationException
reset in interface opennlp.tools.util.ObjectStream<SequenceLabelSample>IOExceptionUnsupportedOperationExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface opennlp.tools.util.ObjectStream<SequenceLabelSample>IOExceptionCopyright © 2017 IXA pipes. All rights reserved.