[][src]Trait conllu::io::ReadSentence

pub trait ReadSentence {
    fn read_sentence(&mut self) -> Result<Option<Sentence>, Error>;

    fn sentences(self) -> Sentences<Self>
    where
        Self: Sized
, { ... } }

A trait for objects that can read CoNLL-U Sentences

Required methods

fn read_sentence(&mut self) -> Result<Option<Sentence>, Error>

Read a Sentence from this object.

Errors

A call to read_sentence may generate an error to indicate that the operation could not be completed.

Loading content...

Provided methods

fn sentences(self) -> Sentences<Self> where
    Self: Sized

Get an iterator over the sentences in this reader.

Loading content...

Implementors

impl<R: BufRead> ReadSentence for Reader<R>[src]

Loading content...