# Uses of Class
opennlp.tools.formats.masc.MascDocument

Packages that use MascDocument
Package
Description
opennlp.tools.formats.masc
Experimental package related to the `MASC` corpus format.

- ## Uses of MascDocument in opennlp.tools.formats.masc

  Methods in opennlp.tools.formats.masc that return MascDocument
  Modifier and Type
  Method
  Description
  `static MascDocument`
  MascDocument.`parseDocument(String path, InputStream f_primary, InputStream f_seg, InputStream f_penn, InputStream f_s, InputStream f_ne)`
  Initializes a `MascDocument` with all the stand-off annotations translated into the internal structure.
  `MascDocument`
  MascDocumentStream.`read()`
  Return the next document.
  Constructor parameters in opennlp.tools.formats.masc with type arguments of type MascDocument
  Modifier
  Constructor
  Description
  ``
  `MascNamedEntitySampleStream(ObjectStream<MascDocument> samples)`
  Initializes `MascNamedEntitySampleStream` from a stream of `documents`.
  ``
  `MascPOSSampleStream(ObjectStream<MascDocument> samples)`
  Initializes `MascPOSSampleStream` from a stream of `documents`.
  ``
  `MascSentenceSampleStream(ObjectStream<MascDocument> samples, int sentencesPerSample)`
  ``
  `MascTokenSampleStream(ObjectStream<MascDocument> samples)`
  Initializes a `MascTokenSampleStream`.