Struct conllx::Sentence [] [src]

pub struct Sentence { /* fields omitted */ }

A sentence with the CoNLL-X annotation layers.

This data type is a small wrapper around Vec<Token> that provides some extra convenience. For example, the implementation of the Display trait outputs the sentence in CoNLL-X format.

Methods

impl Sentence
[src]

Create a new Sentence from a vector of tokens.

Get the sentence tokens as a slice.

Get the sentence tokens as a mutable slice.

Get an iterator over the sentence tokens.

Get a mutable iterator over the sentence tokens.

Trait Implementations

impl Clone for Sentence
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Sentence
[src]

Formats the value using the given formatter.

impl PartialEq for Sentence
[src]

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

This method tests for !=.

impl Display for Sentence
[src]

Formats the value using the given formatter. Read more

impl Index<usize> for Sentence
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl IndexMut<usize> for Sentence
[src]

The method for the mutable indexing (container[index]) operation

impl IntoIterator for Sentence
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'a> IntoIterator for &'a Sentence
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'a> IntoIterator for &'a mut Sentence
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more