[−][src]Struct finalfrontier::DepembedsTrainer
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]
pub fn dep_config(&self) -> DepembedsConfig
[src]
impl<R, V> DepembedsTrainer<ReseedOnCloneRng<R>, V> where
R: Rng + Clone + SeedableRng,
[src]
R: Rng + Clone + SeedableRng,
pub fn new(
input_vocab: V,
output_vocab: SimpleVocab<Dependency>,
common_config: CommonConfig,
dep_config: DepembedsConfig,
rng: R
) -> Self
[src]
input_vocab: V,
output_vocab: SimpleVocab<Dependency>,
common_config: CommonConfig,
dep_config: DepembedsConfig,
rng: R
) -> Self
Constructs a new DepTrainer
.
Trait Implementations
impl<R, V> Trainer for DepembedsTrainer<R, V> where
R: Rng,
V: Vocab,
V::Config: Serialize,
[src]
R: Rng,
V: Vocab,
V::Config: Serialize,
type InputVocab = V
type Metadata = DepembedsMetadata<V::Config, SimpleVocabConfig>
fn input_vocab(&self) -> &Self::InputVocab
[src]
fn try_into_input_vocab(self) -> Result<Self::InputVocab, Error>
[src]
fn n_input_types(&self) -> usize
[src]
fn n_output_types(&self) -> usize
[src]
fn config(&self) -> &CommonConfig
[src]
fn to_metadata(&self) -> Self::Metadata
[src]
impl<R: Clone, V: Clone> Clone for DepembedsTrainer<R, V>
[src]
fn clone(&self) -> DepembedsTrainer<R, V>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<R, V> Send for DepembedsTrainer<R, V> where
R: Send,
V: Send + Sync,
R: Send,
V: Send + Sync,
impl<R, V> Sync for DepembedsTrainer<R, V> where
R: Sync,
V: Send + Sync,
R: Sync,
V: Send + Sync,
impl<R, V> Unpin for DepembedsTrainer<R, V> where
R: Unpin,
R: Unpin,
impl<R, V> UnwindSafe for DepembedsTrainer<R, V> where
R: UnwindSafe,
V: RefUnwindSafe,
R: UnwindSafe,
V: RefUnwindSafe,
impl<R, V> RefUnwindSafe for DepembedsTrainer<R, V> where
R: RefUnwindSafe,
V: RefUnwindSafe,
R: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,