opennlp.tools.formats (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

# Package opennlp.tools.formats

Experimental package related to converting various corpora to OpenNLP Format.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  NameSampleDataStreamFactory.Parameters |
  ParseSampleStreamFactory.Parameters |
  WordTagSampleStreamFactory.Parameters |

- Class Summary
  Class | Description
  --- | ---
  AbstractSampleStreamFactory<T> | Base class for sample stream factories.
  BioNLP2004NameSampleStream | Parser for the training files of the BioNLP/NLPBA 2004 shared task.
  BioNLP2004NameSampleStreamFactory |
  ChunkerSampleStreamFactory | Factory producing OpenNLP `ChunkSampleStream`s.
  Conll02NameSampleStream | Parser for the dutch and spanish ner training files of the CONLL 2002 shared task.
  Conll02NameSampleStreamFactory | Note: Do not use this class, internal use only!
  Conll03NameSampleStream | An import stream which can parse the CONLL03 data.
  Conll03NameSampleStreamFactory |
  ConllXPOSSampleStream | Parses the data from the CONLL 06 shared task into POS Samples.
  ConllXPOSSampleStreamFactory | Note: Do not use this class, internal use only!
  ConllXSentenceSampleStreamFactory | Note: Do not use this class, internal use only!
  ConllXTokenSampleStreamFactory | Note: Do not use this class, internal use only!
  DetokenizerSampleStreamFactory<T> | Base class for factories which need detokenizer.
  DirectorySampleStream | The directory sample stream allows for creating a stream from a directory listing of files.
  DocumentSampleStreamFactory | Factory producing OpenNLP `DocumentSampleStream`s.
  EvalitaNameSampleStream | Parser for the Italian NER training files of the Evalita 2007 and 2009 NER shared tasks.
  EvalitaNameSampleStreamFactory | Note: Do not use this class, internal use only!
  LanguageDetectorSampleStreamFactory | Factory producing OpenNLP `DocumentSampleStream`s.
  LanguageSampleStreamFactory<T> | Stream factory for those streams which carry language.
  LemmatizerSampleStreamFactory | Factory producing OpenNLP `LemmaSampleStream`s.
  NameFinderCensus90NameStream | This class helps to read the US Census data from the files to build a StringList for each dictionary entry in the name-finder dictionary.
  NameSampleDataStreamFactory | Factory producing OpenNLP `NameSampleDataStream`s.
  ParseSampleStreamFactory | Factory producing OpenNLP `ParseSampleStream`s.
  SentenceSampleStreamFactory | Factory producing OpenNLP `SentenceSampleStream`s.
  TokenSampleStreamFactory | Factory producing OpenNLP `TokenSampleStream`s.
  TwentyNewsgroupSampleStream |
  TwentyNewsgroupSampleStreamFactory |
  WordTagSampleStreamFactory | Note: Do not use this class, internal use only!

- Enum Summary
  Enum | Description
  --- | ---
  Conll02NameSampleStream.LANGUAGE |
  Conll03NameSampleStream.LANGUAGE |
  EvalitaNameSampleStream.LANGUAGE |

## Package opennlp.tools.formats Description

Experimental package related to converting various corpora to OpenNLP Format.

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