[][src]Struct sticker_encoders::deprel::RelativePOSEncoder

pub struct RelativePOSEncoder { /* fields omitted */ }

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]

pub fn new(pos_layer: POSLayer, root_relation: impl Into<String>) -> Self[src]

Trait Implementations

impl Clone for RelativePOSEncoder[src]

impl<'de> Deserialize<'de> for RelativePOSEncoder[src]

impl Eq for RelativePOSEncoder[src]

impl PartialEq<RelativePOSEncoder> for RelativePOSEncoder[src]

impl SentenceDecoder for RelativePOSEncoder[src]

type Encoding = DependencyEncoding<RelativePOS>

type Error = Infallible

The decoding error type.

impl SentenceEncoder for RelativePOSEncoder[src]

type Encoding = DependencyEncoding<RelativePOS>

type Error = EncodeError

The encoding error type.

impl Serialize for RelativePOSEncoder[src]

impl StructuralEq for RelativePOSEncoder[src]

impl StructuralPartialEq for RelativePOSEncoder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.