[][src]Struct finalfrontier::DepembedsTrainer

pub struct DepembedsTrainer<R> { /* 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> DepembedsTrainer<R>[src]

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

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

Constructs a new DepTrainer.

Trait Implementations

impl<R> Trainer for DepembedsTrainer<R> where
    R: Rng
[src]

type InputVocab = SubwordVocab

type Metadata = DepembedsMetadata<SubwordVocabConfig, SimpleVocabConfig>

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<R> Send for DepembedsTrainer<R> where
    R: Send

impl<R> Sync for DepembedsTrainer<R> where
    R: Sync

Blanket Implementations

impl<T, U> Into 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> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.