[−][src]Trait lumberjack::io::TryFromConllx
Conversion Trait from CONLLX to Tree
.
Required methods
fn try_from_conllx_with_absolute_encoding(
sentence: &Sentence
) -> Result<Self, Error>
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>
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.
Implementors
impl TryFromConllx for Tree
[src]
fn try_from_conllx_with_absolute_encoding(
sentence: &Sentence
) -> Result<Self, Error>
[src]
sentence: &Sentence
) -> Result<Self, Error>
fn try_from_conllx_with_relative_encoding(
sentence: &Sentence
) -> Result<Self, Error>
[src]
sentence: &Sentence
) -> Result<Self, Error>