[][src]Enum folia::types::AnnotationType

pub enum AnnotationType {
    TEXT,
    TOKEN,
    DIVISION,
    PARAGRAPH,
    HEAD,
    LIST,
    FIGURE,
    WHITESPACE,
    LINEBREAK,
    SENTENCE,
    POS,
    LEMMA,
    DOMAIN,
    SENSE,
    SYNTAX,
    CHUNKING,
    ENTITY,
    CORRECTION,
    ERRORDETECTION,
    PHON,
    SUBJECTIVITY,
    MORPHOLOGICAL,
    EVENT,
    DEPENDENCY,
    TIMESEGMENT,
    GAP,
    QUOTE,
    NOTE,
    REFERENCE,
    RELATION,
    SPANRELATION,
    COREFERENCE,
    SEMROLE,
    METRIC,
    LANG,
    STRING,
    TABLE,
    STYLE,
    PART,
    UTTERANCE,
    ENTRY,
    TERM,
    DEFINITION,
    EXAMPLE,
    PHONOLOGICAL,
    PREDICATE,
    OBSERVATION,
    SENTIMENT,
    STATEMENT,
    ALTERNATIVE,
    RAWCONTENT,
    COMMENT,
    DESCRIPTION,
    HYPHENATION,
    HIDDENTOKEN,
}

Defines all annotation types (as part of the AnnotationType enumeration)

Variants

TEXT
TOKEN
DIVISION
PARAGRAPH
HEAD
LIST
FIGURE
WHITESPACE
LINEBREAK
SENTENCE
POS
LEMMA
DOMAIN
SENSE
SYNTAX
CHUNKING
ENTITY
CORRECTION
ERRORDETECTION
PHON
SUBJECTIVITY
MORPHOLOGICAL
EVENT
DEPENDENCY
TIMESEGMENT
GAP
QUOTE
NOTE
REFERENCE
RELATION
SPANRELATION
COREFERENCE
SEMROLE
METRIC
LANG
STRING
TABLE
STYLE
PART
UTTERANCE
ENTRY
TERM
DEFINITION
EXAMPLE
PHONOLOGICAL
PREDICATE
OBSERVATION
SENTIMENT
STATEMENT
ALTERNATIVE
RAWCONTENT
COMMENT
DESCRIPTION
HYPHENATION
HIDDENTOKEN

Methods

impl AnnotationType[src]

pub fn as_str(&self) -> &'static str[src]

Maps annotation types to strings

pub fn from_str(s: &str) -> Option<Self>[src]

pub fn as_element_str(&self) -> &'static str[src]

impl AnnotationType[src]

pub fn elementtype(&self) -> ElementType[src]

A mapping from annotation types to element types, based on the assumption that there is always only one primary element for an annotation type (and possible multiple secondary ones which are not included in this map,w)

Trait Implementations

impl Eq for AnnotationType[src]

impl<'_> Into<&'_ str> for AnnotationType[src]

impl Into<ElementType> for AnnotationType[src]

impl Clone for AnnotationType[src]

impl PartialEq<AnnotationType> for AnnotationType[src]

impl Copy for AnnotationType[src]

impl Hash for AnnotationType[src]

impl Display for AnnotationType[src]

impl Debug for AnnotationType[src]

impl IntoEnumIterator for AnnotationType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]