Struct conllx::Token [] [src]

pub struct Token { /* fields omitted */ }

A token with the CoNLL-X annotation layers.

The fields of CoNLLX tokens are described at:

http://ilk.uvt.nl/conll/

This type provides exactly the same fields, except for the ID field (since it can be derived from the sentence position of the token). If a particular field is absent (_ in the CoNLL-X format), its value is None.

Methods

impl Token
[src]

Create a new token where all the fields are absent.

Get the word form or punctuation symbol.

Get the lemma or stem of the word form.

Get the coarse-grained part-of-speech tag.

Get the fine-grained part-of-speech tag.

Get the syntactic and/or morphological features of the token.

Get the head of the token. This is the sentence position of the head plus one. If the head is 0, the token the root of the dependency tree.

Get the dependency relation to the head of this token.

Get the projective head of the token. This is the sentence position of the head plus one. If the head is 0, the token the root of the dependency tree. The dependency structure resulting from the projective heads must be projective.

Get the dependency relation to the projective head of this token.

Set the word form or punctuation symbol.

Set the lemma or stem of the word form.

Set the coarse-grained part-of-speech tag.

Set the fine-grained part-of-speech tag.

Set the syntactic and/or morphological features of the token.

Set the head of the token. This is the sentence position of the head plus one. If the head is 0, the token the root of the dependency tree.

Set the dependency relation to the head of this token.

Set the projective head of the token. This is the sentence position of the head plus one. If the head is 0, the token the root of the dependency tree. The dependency structure resulting from the projective heads must be projective.

Set the dependency relation to the projective head of this token.

Trait Implementations

impl Clone for Token
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Token
[src]

Formats the value using the given formatter.

impl PartialEq for Token
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for Token
[src]

Returns the "default value" for a type. Read more

impl Display for Token
[src]

Formats the value using the given formatter. Read more