Trait syntaxdot_encoders::SentenceDecoder [−][src]
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<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
Implementors
impl SentenceDecoder for RelativePOSEncoder
[src]
type Encoding = DependencyEncoding<RelativePOS>
type Error = Infallible
fn decode<S>(
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
impl SentenceDecoder for RelativePositionEncoder
[src]
type Encoding = DependencyEncoding<RelativePosition>
type Error = Infallible
fn decode<S>(
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
impl SentenceDecoder for LayerEncoder
[src]
type Encoding = String
type Error = Infallible
fn decode<S>(
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
impl SentenceDecoder for EditTreeEncoder
[src]
type Encoding = EditTree
type Error = Infallible
fn decode<S>(
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
impl SentenceDecoder for TdzLemmaEncoder
[src]
type Encoding = <EditTreeEncoder as SentenceDecoder>::Encoding
type Error = <EditTreeEncoder as SentenceDecoder>::Error
fn decode<S>(
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
S: AsRef<[EncodingProb<Self::Encoding>]>,
[src]
&self,
labels: &[S],
sentence: &mut Sentence
) -> Result<(), Self::Error> where
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>,