[][src]Trait lumberjack::io::TryFromConllx

pub trait TryFromConllx: Sized {
    fn try_from_conllx_with_absolute_encoding(
        sentence: &Sentence
    ) -> Result<Self, Error>;
fn try_from_conllx_with_relative_encoding(
        sentence: &Sentence
    ) -> Result<Self, Error>; }

Conversion Trait from CONLLX to Tree.

Required methods

fn try_from_conllx_with_absolute_encoding(
    sentence: &Sentence
) -> Result<Self, Error>

Attempt to construct a tree from labels annotated on a Sentence.

Assumes that the encoding is found by key "abs_ancestor".

fn try_from_conllx_with_relative_encoding(
    sentence: &Sentence
) -> Result<Self, Error>

Attempt to construct a tree from labels annotated on a Sentence.

Assumes that the encoding is found by key "rel_ancestor".

This method converts the relative encoding to an absolute scale one before constructing the tree. If that conversion fails, ConversionResult::fix is called to finish the conversion.

Loading content...

Implementors

impl TryFromConllx for Tree[src]

Loading content...