[−][src]Trait sticker_encoders::SentenceDecoder
Trait for sentence decoders.
A sentence decoder adds a representation to each token in a sentence, such as a part-of-speech tag or a topological field.
Associated Types
Loading content...Required methods
fn decode<S>(&self, labels: &[S], sentence: &mut Sentence) -> Result<(), Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
S: AsRef<[EncodingProb<Self::Encoding>]>,
Implementors
impl SentenceDecoder for RelativePOSEncoder
[src]
type Encoding = DependencyEncoding<RelativePOS>
fn decode<S>(&self, labels: &[S], sentence: &mut Sentence) -> Result<(), Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
S: AsRef<[EncodingProb<Self::Encoding>]>,
impl SentenceDecoder for RelativePositionEncoder
[src]
type Encoding = DependencyEncoding<RelativePosition>
fn decode<S>(&self, labels: &[S], sentence: &mut Sentence) -> Result<(), Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
S: AsRef<[EncodingProb<Self::Encoding>]>,
impl SentenceDecoder for LayerEncoder
[src]
type Encoding = String
fn decode<S>(&self, labels: &[S], sentence: &mut Sentence) -> Result<(), Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
S: AsRef<[EncodingProb<Self::Encoding>]>,
impl SentenceDecoder for EditTreeEncoder
[src]
type Encoding = EditTree<char>
fn decode<S>(&self, labels: &[S], sentence: &mut Sentence) -> Result<(), Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
S: AsRef<[EncodingProb<Self::Encoding>]>,
impl<D, M> SentenceDecoder for CategoricalEncoder<D, D::Encoding, M> where
D: SentenceDecoder,
D::Encoding: Clone + Eq + Hash,
M: Number<D::Encoding>,
[src]
D: SentenceDecoder,
D::Encoding: Clone + Eq + Hash,
M: Number<D::Encoding>,