## 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 and 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 and Description
    --- | ---
    `List<NameSample>` | BratDocumentParser.`parse(BratDocument sample)`
    `protected List<NameSample>` | BratNameSampleStream.`read(BratDocument sample)`

    Constructor parameters in opennlp.tools.formats.brat with type arguments of type BratDocument
    Constructor and Description
    `BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples)` Creates a new `BratNameSampleStream`.
    `BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes)` Creates a new `BratNameSampleStream`.
    `BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples)` Creates a new `BratNameSampleStream`.
    `BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples, Set<String> nameTypes)` Creates a new `BratNameSampleStream`.

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