## Uses of Class
opennlp.tools.postag.POSSample

- Packages that use POSSample
  Package | Description
  --- | ---
  opennlp.tools.cmdline.postag |
  opennlp.tools.formats | Experimental package related to converting various corpora to OpenNLP Format.
  opennlp.tools.formats.ad |
  opennlp.tools.formats.conllu |
  opennlp.tools.formats.convert |
  opennlp.tools.formats.ontonotes |
  opennlp.tools.parser | Package containing common code for performing full syntactic parsing.
  opennlp.tools.postag | Package related to part-of-speech tagging.

- - ### Uses of POSSample in opennlp.tools.cmdline.postag

    Methods in opennlp.tools.cmdline.postag with parameters of type POSSample
    Modifier and Type | Method and Description
    --- | ---
    `void` | POSTaggerFineGrainedReportListener.`correctlyClassified(POSSample reference, POSSample prediction)`
    `void` | POSTaggerFineGrainedReportListener.`missclassified(POSSample reference, POSSample prediction)`
    `void` | POSEvaluationErrorListener.`missclassified(POSSample reference, POSSample prediction)`

  - ### Uses of POSSample in opennlp.tools.formats

    Methods in opennlp.tools.formats that return POSSample
    Modifier and Type | Method and Description
    --- | ---
    `POSSample` | ConllXPOSSampleStream.`read()`

    Methods in opennlp.tools.formats that return types with arguments of type POSSample
    Modifier and Type | Method and Description
    --- | ---
    `ObjectStream<POSSample>` | WordTagSampleStreamFactory.`create(String[] args)`
    `ObjectStream<POSSample>` | ConllXPOSSampleStreamFactory.`create(String[] args)`

  - ### Uses of POSSample in opennlp.tools.formats.ad

    Methods in opennlp.tools.formats.ad that return POSSample
    Modifier and Type | Method and Description
    --- | ---
    `POSSample` | ADPOSSampleStream.`read()`

    Methods in opennlp.tools.formats.ad that return types with arguments of type POSSample
    Modifier and Type | Method and Description
    --- | ---
    `ObjectStream<POSSample>` | ADPOSSampleStreamFactory.`create(String[] args)`

  - ### Uses of POSSample in opennlp.tools.formats.conllu

    Methods in opennlp.tools.formats.conllu that return POSSample
    Modifier and Type | Method and Description
    --- | ---
    `POSSample` | ConlluPOSSampleStream.`read()`

    Methods in opennlp.tools.formats.conllu that return types with arguments of type POSSample
    Modifier and Type | Method and Description
    --- | ---
    `ObjectStream<POSSample>` | ConlluPOSSampleStreamFactory.`create(String[] args)`

  - ### Uses of POSSample in opennlp.tools.formats.convert

    Methods in opennlp.tools.formats.convert that return POSSample
    Modifier and Type | Method and Description
    --- | ---
    `POSSample` | ParseToPOSSampleStream.`read()`

    Methods in opennlp.tools.formats.convert that return types with arguments of type POSSample
    Modifier and Type | Method and Description
    --- | ---
    `ObjectStream<POSSample>` | ParseToPOSSampleStreamFactory.`create(String[] args)`

    Methods in opennlp.tools.formats.convert with parameters of type POSSample
    Modifier and Type | Method and Description
    --- | ---
    `protected String[]` | POSToSentenceSampleStream.`toSentence(POSSample sample)`

    Constructor parameters in opennlp.tools.formats.convert with type arguments of type POSSample
    Constructor and Description
    `POSToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<POSSample> samples, int chunkSize)`
    `POSToTokenSampleStream(Detokenizer detokenizer, ObjectStream<POSSample> samples)`

  - ### Uses of POSSample in opennlp.tools.formats.ontonotes

    Methods in opennlp.tools.formats.ontonotes that return types with arguments of type POSSample
    Modifier and Type | Method and Description
    --- | ---
    `ObjectStream<POSSample>` | OntoNotesPOSSampleStreamFactory.`create(String[] args)`

  - ### Uses of POSSample in opennlp.tools.parser

    Methods in opennlp.tools.parser that return POSSample
    Modifier and Type | Method and Description
    --- | ---
    `POSSample` | PosSampleStream.`read()`

  - ### Uses of POSSample in opennlp.tools.postag

    Methods in opennlp.tools.postag that return POSSample
    Modifier and Type | Method and Description
    --- | ---
    `static POSSample` | POSSample.`parse(String sentenceString)`
    `protected POSSample` | POSEvaluator.`processSample(POSSample reference)` Evaluates the given reference `POSSample` object.
    `POSSample` | WordTagSampleStream.`read()` Parses the next sentence and return the next `POSSample` object.

    Methods in opennlp.tools.postag with parameters of type POSSample
    Modifier and Type | Method and Description
    --- | ---
    `protected Iterator<Event>` | POSSampleEventStream.`createEvents(POSSample sample)`
    `protected POSSample` | POSEvaluator.`processSample(POSSample reference)` Evaluates the given reference `POSSample` object.

    Method parameters in opennlp.tools.postag with type arguments of type POSSample
    Modifier and Type | Method and Description
    --- | ---
    `static Dictionary` | POSTaggerME.`buildNGramDictionary(ObjectStream<POSSample> samples, int cutoff)`
    `void` | POSTaggerCrossValidator.`evaluate(ObjectStream<POSSample> samples, int nFolds)` Starts the evaluation.
    `static void` | POSTaggerME.`populatePOSDictionary(ObjectStream<POSSample> samples, MutableTagDictionary dict, int cutoff)`
    `static POSModel` | POSTaggerME.`train(String languageCode, ObjectStream<POSSample> samples, TrainingParameters trainParams, POSTaggerFactory posFactory)`

    Constructor parameters in opennlp.tools.postag with type arguments of type POSSample
    Constructor and Description
    `POSSampleEventStream(ObjectStream<POSSample> samples)` Initializes the current instance with given samples and a `DefaultPOSContextGenerator`.
    `POSSampleEventStream(ObjectStream<POSSample> samples, POSContextGenerator cg)` Initializes the current instance with the given samples and the given `POSContextGenerator`.
    `POSSampleSequenceStream(ObjectStream<POSSample> psi)`
    `POSSampleSequenceStream(ObjectStream<POSSample> psi, POSContextGenerator pcg)`

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