[−][src]Struct sticker_encoders::deprel::RelativePOSEncoder
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
impl RelativePOSEncoder
[src]
Trait Implementations
impl Clone for RelativePOSEncoder
[src]
fn clone(&self) -> RelativePOSEncoder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for RelativePOSEncoder
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for RelativePOSEncoder
[src]
impl PartialEq<RelativePOSEncoder> for RelativePOSEncoder
[src]
fn eq(&self, other: &RelativePOSEncoder) -> bool
[src]
fn ne(&self, other: &RelativePOSEncoder) -> bool
[src]
impl SentenceDecoder for RelativePOSEncoder
[src]
type Encoding = DependencyEncoding<RelativePOS>
type Error = Infallible
The decoding error type.
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 SentenceEncoder for RelativePOSEncoder
[src]
type Encoding = DependencyEncoding<RelativePOS>
type Error = EncodeError
The encoding error type.
fn encode(
&self,
sentence: &Sentence
) -> Result<Vec<Self::Encoding>, Self::Error>
[src]
&self,
sentence: &Sentence
) -> Result<Vec<Self::Encoding>, Self::Error>
impl Serialize for RelativePOSEncoder
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for RelativePOSEncoder
[src]
impl StructuralPartialEq for RelativePOSEncoder
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,