Struct syntaxdot_encoders::depseq::RelativePos
source · pub struct RelativePos { /* private fields */ }Expand description
Relative head position by part-of-speech.
The position of the head relative to the dependent token, in terms of part-of-speech tags. For example, a position of -2 with the pos noun means that the head is the second preceding noun.
Implementations§
Trait Implementations§
source§impl Clone for RelativePos
impl Clone for RelativePos
source§fn clone(&self) -> RelativePos
fn clone(&self) -> RelativePos
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 Debug for RelativePos
impl Debug for RelativePos
source§impl<'de> Deserialize<'de> for RelativePos
impl<'de> Deserialize<'de> for RelativePos
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 Hash for RelativePos
impl Hash for RelativePos
source§impl PartialEq<RelativePos> for RelativePos
impl PartialEq<RelativePos> for RelativePos
source§fn eq(&self, other: &RelativePos) -> bool
fn eq(&self, other: &RelativePos) -> bool
source§impl Serialize for RelativePos
impl Serialize for RelativePos
impl Eq for RelativePos
impl StructuralEq for RelativePos
impl StructuralPartialEq for RelativePos
Auto Trait Implementations§
impl RefUnwindSafe for RelativePos
impl Send for RelativePos
impl Sync for RelativePos
impl Unpin for RelativePos
impl UnwindSafe for RelativePos
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.