Class AbstractSampleStreamFactory<T,P>

java.lang.Object
opennlp.tools.formats.AbstractSampleStreamFactory<T,P>
All Implemented Interfaces:
opennlp.tools.cmdline.ObjectStreamFactory<T,P>
Direct Known Subclasses:
BioNLP2004NameSampleStreamFactory, BratNameSampleStreamFactory, ChunkerSampleStreamFactory, ConlluLemmaSampleStreamFactory, ConlluPOSSampleStreamFactory, ConlluSentenceSampleStreamFactory, ConlluTokenSampleStreamFactory, ConllXPOSSampleStreamFactory, ConstitParseSampleStreamFactory, DetokenizerSampleStreamFactory, DocumentSampleStreamFactory, IrishSentenceBankSentenceStreamFactory, LanguageDetectorSampleStreamFactory, LanguageSampleStreamFactory, LeipzigLanguageSampleStreamFactory, LemmatizerSampleStreamFactory, LetsmtSentenceStreamFactory, MascNamedEntitySampleStreamFactory, MascPOSSampleStreamFactory, MascSentenceSampleStreamFactory, MascTokenSampleStreamFactory, MosesSentenceSampleStreamFactory, Muc6NameSampleStreamFactory, NameSampleDataStreamFactory, NKJPSentenceSampleStreamFactory, OntoNotesNameSampleStreamFactory, OntoNotesParseSampleStreamFactory, OntoNotesPOSSampleStreamFactory, ParseSampleStreamFactory, SentenceSampleStreamFactory, TwentyNewsgroupSampleStreamFactory, WordTagSampleStreamFactory

public abstract class AbstractSampleStreamFactory<T,P> extends Object implements opennlp.tools.cmdline.ObjectStreamFactory<T,P>
Base class for sample stream factories.
  • Method Details

    • getLang

      public String getLang()
    • getParameters

      public Class<P> getParameters()
      Specified by:
      getParameters in interface opennlp.tools.cmdline.ObjectStreamFactory<T,P>
      Returns:
      Retrieves interface with parameters description.