LanguageSampleStreamFactory (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.formats

## Class LanguageSampleStreamFactory<T>

- java.lang.Object
- - opennlp.tools.formats.AbstractSampleStreamFactory<T>
  - - opennlp.tools.formats.LanguageSampleStreamFactory<T>

- All Implemented Interfaces:
    opennlp.tools.cmdline.ObjectStreamFactory<T>
  Direct Known Subclasses:
    ADChunkSampleStreamFactory, ADNameSampleStreamFactory, ADPOSSampleStreamFactory, ADSentenceSampleStreamFactory, Conll02NameSampleStreamFactory, Conll03NameSampleStreamFactory, EvalitaNameSampleStreamFactory, ParseToPOSSampleStreamFactory, TokenSampleStreamFactory

      public abstract class LanguageSampleStreamFactory<T>
      extends AbstractSampleStreamFactory<T>

  Stream factory for those streams which carry language.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getLang()`

    - ### Methods inherited from class opennlp.tools.formats.AbstractSampleStreamFactory

      `getParameters`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface opennlp.tools.cmdline.ObjectStreamFactory

      `create`

- - ### Method Detail

    - #### getLang

          public String getLang()

      Overrides:
        `getLang` in class `AbstractSampleStreamFactory<T>`

Copyright © 2026 The Apache Software Foundation. All rights reserved.