[−][src]Trait finalfusion::subword::BucketIndexer
N-Gram indexer with bucketing.
Required methods
fn new(buckets: usize) -> Self
Create a new indexer.
The buckets argument is the number of buckets or the bucket exponent (depending on the implementation).
fn buckets(&self) -> usize
Get the number of buckets.
Depending on the indexer, this may be the actual number of buckets or the bucket exponent.
Implementors
impl BucketIndexer for FastTextIndexer
[src]
fn new(buckets: usize) -> Self
[src]
Construct a FastTextIndexer instance
buckets
is the (exact) number of buckets to use.
fn buckets(&self) -> usize
[src]
impl<H> BucketIndexer for HashIndexer<H> where
H: Default + Hasher,
[src]
H: Default + Hasher,