[][src]Struct finalfrontier::DepembedsTrainer

pub struct DepembedsTrainer<R, V> { /* fields omitted */ }

Dependency embeddings Trainer.

The DepembedsTrainer holds the information and logic necessary to transform a conllx::Sentence into an iterator of focus and context tuples. The struct is cheap to clone because the vocabulary is shared between clones.

Methods

impl<R, V> DepembedsTrainer<R, V>[src]

impl<R, V> DepembedsTrainer<ReseedOnCloneRng<R>, V> where
    R: Rng + Clone + SeedableRng
[src]

pub fn new(
    input_vocab: V,
    output_vocab: SimpleVocab<Dependency>,
    common_config: CommonConfig,
    dep_config: DepembedsConfig,
    rng: R
) -> Self
[src]

Constructs a new DepTrainer.

Trait Implementations

impl<R, V> Trainer for DepembedsTrainer<R, V> where
    R: Rng,
    V: Vocab,
    V::Config: Serialize
[src]

type InputVocab = V

type Metadata = DepembedsMetadata<V::Config, SimpleVocabConfig>

impl<R: Clone, V: Clone> Clone for DepembedsTrainer<R, V>[src]

Auto Trait Implementations

impl<R, V> Send for DepembedsTrainer<R, V> where
    R: Send,
    V: Send + Sync

impl<R, V> Sync for DepembedsTrainer<R, V> where
    R: Sync,
    V: Send + Sync

impl<R, V> Unpin for DepembedsTrainer<R, V> where
    R: Unpin

impl<R, V> UnwindSafe for DepembedsTrainer<R, V> where
    R: UnwindSafe,
    V: RefUnwindSafe

impl<R, V> RefUnwindSafe for DepembedsTrainer<R, V> where
    R: RefUnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,