[−][src]Trait sticker_encoders::SentenceEncoder
Trait for sentence encoders.
A sentence encoder extracts a representation of each token in a sentence, such as a part-of-speech tag or a topological field.
Associated Types
type Encoding
Required methods
fn encode(&self, sentence: &Sentence) -> Result<Vec<Self::Encoding>, Error>
Encode the given sentence.
Implementors
impl SentenceEncoder for RelativePOSEncoder
[src]
type Encoding = DependencyEncoding<RelativePOS>
fn encode(&self, sentence: &Sentence) -> Result<Vec<Self::Encoding>, Error>
[src]
impl SentenceEncoder for RelativePositionEncoder
[src]
type Encoding = DependencyEncoding<RelativePosition>
fn encode(&self, sentence: &Sentence) -> Result<Vec<Self::Encoding>, Error>
[src]
impl SentenceEncoder for LayerEncoder
[src]
type Encoding = String
fn encode(&self, sentence: &Sentence) -> Result<Vec<Self::Encoding>, Error>
[src]
impl SentenceEncoder for EditTreeEncoder
[src]
type Encoding = EditTree<char>
fn encode(&self, sentence: &Sentence) -> Result<Vec<Self::Encoding>, Error>
[src]
impl<E, M> SentenceEncoder for CategoricalEncoder<E, E::Encoding, M> where
E: SentenceEncoder,
E::Encoding: Clone + Eq + Hash,
M: Number<E::Encoding>,
[src]
E: SentenceEncoder,
E::Encoding: Clone + Eq + Hash,
M: Number<E::Encoding>,