# Uses of Class
opennlp.tools.formats.brat.BratDocument

Packages that use BratDocument
Package
Description
opennlp.tools.formats.brat

- ## Uses of BratDocument in opennlp.tools.formats.brat

  Methods in opennlp.tools.formats.brat that return BratDocument
  Modifier and Type
  Method
  Description
  `static BratDocument`
  BratDocument.`parseDocument(AnnotationConfiguration config, String id, InputStream txtIn, InputStream annIn)`
  `BratDocument`
  BratDocumentStream.`read()`
  Methods in opennlp.tools.formats.brat with parameters of type BratDocument
  Modifier and Type
  Method
  Description
  `List<opennlp.tools.namefind.NameSample>`
  BratDocumentParser.`parse(BratDocument sample)`
  `protected List<opennlp.tools.namefind.NameSample>`
  BratNameSampleStream.`read(BratDocument sample)`
  Constructor parameters in opennlp.tools.formats.brat with type arguments of type BratDocument
  Modifier
  Constructor
  Description
  ``
  `BratNameSampleStream(opennlp.tools.sentdetect.SentenceDetector sentDetector, opennlp.tools.tokenize.Tokenizer tokenizer, opennlp.tools.util.ObjectStream<BratDocument> samples)`
  Initializes a new `BratNameSampleStream` with the specified parameters based on a straem of `documents`.
  ``
  `BratNameSampleStream(opennlp.tools.sentdetect.SentenceDetector sentDetector, opennlp.tools.tokenize.Tokenizer tokenizer, opennlp.tools.util.ObjectStream<BratDocument> samples, Set<String> nameTypes)`
  Creates a new `BratNameSampleStream`.
  ``
  `BratNameSampleStream(opennlp.tools.sentdetect.SentenceModel sentModel, opennlp.tools.tokenize.TokenizerModel tokenModel, opennlp.tools.util.ObjectStream<BratDocument> samples)`
  Initializes a new `BratNameSampleStream` with the specified (model) parameters.
  ``
  `BratNameSampleStream(opennlp.tools.sentdetect.SentenceModel sentModel, opennlp.tools.tokenize.TokenizerModel tokenModel, opennlp.tools.util.ObjectStream<BratDocument> samples, Set<String> nameTypes)`
  Creates a new `BratNameSampleStream`.