opennlp.tools.formats.brat

## Class RelationAnnotation

- java.lang.Object
- - opennlp.tools.formats.brat.BratAnnotation
  - - opennlp.tools.formats.brat.RelationAnnotation

-     public class RelationAnnotation
      extends BratAnnotation

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getArg1()`
    `String` | `getArg2()`
    `String` | `toString()`

    - ### Methods inherited from class opennlp.tools.formats.brat.BratAnnotation

      `getId, getNote, getType, setNote`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### getArg1

          public String getArg1()

    - #### getArg2

          public String getArg2()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `BratAnnotation`

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