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:
  • Method Details

    • registerFactory

      public static void registerFactory()
      Registers the factory as the default and as the conllu format for dependency 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.