Struct syntaxdot_encoders::depseq::RelativePosEncoder
source · pub struct RelativePosEncoder { /* private fields */ }Expand description
Relative part-of-speech position encoder.
This encoder encodes dependency relations as token labels. The dependency relation is encoded as-is. The position of the head is encoded relative to the (dependent) token by part-of-speech.
Implementations§
Trait Implementations§
source§impl Clone for RelativePosEncoder
impl Clone for RelativePosEncoder
source§fn clone(&self) -> RelativePosEncoder
fn clone(&self) -> RelativePosEncoder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'de> Deserialize<'de> for RelativePosEncoder
impl<'de> Deserialize<'de> for RelativePosEncoder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<RelativePosEncoder> for RelativePosEncoder
impl PartialEq<RelativePosEncoder> for RelativePosEncoder
source§fn eq(&self, other: &RelativePosEncoder) -> bool
fn eq(&self, other: &RelativePosEncoder) -> bool
source§impl SentenceDecoder for RelativePosEncoder
impl SentenceDecoder for RelativePosEncoder
source§impl SentenceEncoder for RelativePosEncoder
impl SentenceEncoder for RelativePosEncoder
type Encoding = DependencyEncoding<RelativePos>
§type Error = EncodeError
type Error = EncodeError
The encoding error type.
source§impl Serialize for RelativePosEncoder
impl Serialize for RelativePosEncoder
impl Eq for RelativePosEncoder
impl StructuralEq for RelativePosEncoder
impl StructuralPartialEq for RelativePosEncoder
Auto Trait Implementations§
impl RefUnwindSafe for RelativePosEncoder
impl Send for RelativePosEncoder
impl Sync for RelativePosEncoder
impl Unpin for RelativePosEncoder
impl UnwindSafe for RelativePosEncoder
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.