Struct syntaxdot_encoders::layer::LayerEncoder[][src]

pub struct LayerEncoder { /* fields omitted */ }

Encode sentences using a CoNLL-X layer.

Implementations

impl LayerEncoder[src]

pub fn new(layer: Layer) -> Self[src]

Construct a new layer encoder of the given layer.

Trait Implementations

impl Clone for LayerEncoder[src]

impl Debug for LayerEncoder[src]

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

impl Eq for LayerEncoder[src]

impl PartialEq<LayerEncoder> for LayerEncoder[src]

impl SentenceDecoder for LayerEncoder[src]

type Encoding = String

type Error = Infallible

The decoding error type.

impl SentenceEncoder for LayerEncoder[src]

type Encoding = String

type Error = EncodeError

The encoding error type.

impl Serialize for LayerEncoder[src]

impl StructuralEq for LayerEncoder[src]

impl StructuralPartialEq for LayerEncoder[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.