## format_brat()


The `.ann` content for a document. The text is written unchanged as the `.txt`.


Usage

``` python
format_brat(
    doc,
    *,
    offset_unit="codepoint",
    lossy="warn",
)
```


Relations map to line kinds by structure: a trigger makes an `E` line, members without roles a `*` line, two members with roles an `R` line. IDs that do not fit brat's `T`/`E`/`R` numbering are renumbered consistently.
