Class ConlluDependencySampleStreamFactory
java.lang.Object
opennlp.tools.formats.AbstractSampleStreamFactory<opennlp.tools.depparse.DependencySample, ConlluDependencySampleStreamFactory.Parameters>
opennlp.tools.formats.conllu.ConlluDependencySampleStreamFactory
- All Implemented Interfaces:
opennlp.tools.cmdline.ObjectStreamFactory<opennlp.tools.depparse.DependencySample, ConlluDependencySampleStreamFactory.Parameters>
@Internal
public class ConlluDependencySampleStreamFactory
extends AbstractSampleStreamFactory<opennlp.tools.depparse.DependencySample, ConlluDependencySampleStreamFactory.Parameters>
Creates
ConlluDependencySampleStream instances for the command line tools. The
data is always read as UTF-8, as the CoNLL-U format requires.
Note: Do not use this class, internal use only!
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe command line parameters of the CoNLL-U dependency format. -
Method Summary
Modifier and TypeMethodDescriptionopennlp.tools.util.ObjectStream<opennlp.tools.depparse.DependencySample> static voidRegisters the factory as the default and as theconlluformat fordependency samples.Methods inherited from class AbstractSampleStreamFactory
getLang, getParameters
-
Method Details
-
registerFactory
public static void registerFactory()Registers the factory as the default and as theconlluformat fordependency samples. -
create
public opennlp.tools.util.ObjectStream<opennlp.tools.depparse.DependencySample> create(String[] args) - Throws:
opennlp.tools.cmdline.TerminateToolException- Thrown if the encoding is not UTF-8, the tagset parameter is unknown, or the data cannot be opened.
-