Package opennlp.tools.formats.brat

# Class AnnotationConfiguration

java.lang.Object
opennlp.tools.formats.brat.AnnotationConfiguration

public class AnnotationConfiguration extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `ATTRIBUTE_TYPE`
  `static final String`
  `ENTITY_TYPE`
  `static final String`
  `EVENT_TYPE`
  `static final String`
  `RELATION_TYPE`
  `static final String`
  `SPAN_TYPE`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AnnotationConfiguration(Map<String,String> typeToClassMap)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getTypeClass(String type)`
  `static AnnotationConfiguration`
  `parse(File annConfigFile)`
  `static AnnotationConfiguration`
  `parse(InputStream in)`

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

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

- ## Field Details

  - ### SPAN_TYPE

    public static final String SPAN_TYPE
    See Also:
      - Constant Field Values

  - ### ENTITY_TYPE

    public static final String ENTITY_TYPE
    See Also:
      - Constant Field Values

  - ### RELATION_TYPE

    public static final String RELATION_TYPE
    See Also:
      - Constant Field Values

  - ### ATTRIBUTE_TYPE

    public static final String ATTRIBUTE_TYPE
    See Also:
      - Constant Field Values

  - ### EVENT_TYPE

    public static final String EVENT_TYPE
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### AnnotationConfiguration

    public AnnotationConfiguration(Map<String,String> typeToClassMap)

- ## Method Details

  - ### getTypeClass

    public String getTypeClass(String type)

  - ### parse

    public static AnnotationConfiguration parse(InputStream in) throws IOException
    Throws:
      `IOException`

  - ### parse

    public static AnnotationConfiguration parse(File annConfigFile) throws IOException
    Throws:
      `IOException`