langram 0.11.1

Natural language detection library
Documentation
1
2
3
4
5
6
7
use crate::ngram_size::NgramSize;
use ::std::collections::HashMap;
use strum::EnumCount;

// pub type ModelNgrams = entropy_map::Map<String, f64, 64, 10, u16, rustc_hash::FxHasher>;
pub type ModelNgrams = HashMap<String, f64, rustc_hash::FxBuildHasher>;
pub type Model = [ModelNgrams; NgramSize::COUNT];