pub struct FastTextIndexer { /* private fields */ }
Expand description
fastText-compatible subword indexer.
Trait Implementations§
Source§impl BucketIndexer for FastTextIndexer
impl BucketIndexer for FastTextIndexer
Source§impl Clone for FastTextIndexer
impl Clone for FastTextIndexer
Source§fn clone(&self) -> FastTextIndexer
fn clone(&self) -> FastTextIndexer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FastTextIndexer
impl Debug for FastTextIndexer
Source§impl Indexer for FastTextIndexer
impl Indexer for FastTextIndexer
Source§fn index_ngram(&self, ngram: &StrWithCharLen<'_>) -> NGramVec
fn index_ngram(&self, ngram: &StrWithCharLen<'_>) -> NGramVec
Map an n-gram to indices in the subword embedding matrix.
Source§fn upper_bound(&self) -> u64
fn upper_bound(&self) -> u64
Return the (exclusive) upper bound of this indexer.
Source§fn infallible() -> bool
fn infallible() -> bool
Indicates whether this Indexer never fails to produce an index.
Source§fn scope() -> IndicesScope
fn scope() -> IndicesScope
The scope of the indexer.
Source§impl PartialEq for FastTextIndexer
impl PartialEq for FastTextIndexer
impl Copy for FastTextIndexer
impl Eq for FastTextIndexer
impl StructuralPartialEq for FastTextIndexer
Auto Trait Implementations§
impl Freeze for FastTextIndexer
impl RefUnwindSafe for FastTextIndexer
impl Send for FastTextIndexer
impl Sync for FastTextIndexer
impl Unpin for FastTextIndexer
impl UnwindSafe for FastTextIndexer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more