[][src]Struct sticker::LayerEmbeddings

pub struct LayerEmbeddings { /* fields omitted */ }

Embeddings for annotation layers.

This data structure bundles embedding matrices for the input annotation layers: tokens and part-of-speech.

Methods

impl LayerEmbeddings[src]

pub fn new(
    token_embeddings: Embeddings,
    tag_embeddings: Option<Embeddings>
) -> Self
[src]

Construct LayerEmbeddings from the given embeddings.

pub fn tag_embeddings(&self) -> Option<&Embeddings>[src]

Get the tag embedding matrix.

pub fn token_embeddings(&self) -> &Embeddings[src]

Get the token embedding matrix.

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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