Struct finalfusion::compat::fasttext::FastTextIndexer
source · 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 copy 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
source§fn eq(&self, other: &FastTextIndexer) -> bool
fn eq(&self, other: &FastTextIndexer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FastTextIndexer
impl Eq for FastTextIndexer
impl StructuralEq for FastTextIndexer
impl StructuralPartialEq for FastTextIndexer
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.