pub struct FreqMap(/* private fields */);Expand description
A word→frequency lookup table backed by the Thai National Corpus (TNC).
Frequencies are raw TNC occurrence counts. Words absent from the table return 0, which is a safe default (the DP scorer simply ignores them).
The built-in table is loaded with FreqMap::builtin. Custom tables can
be constructed from any tab-separated word\tcount text via FreqMap::from_tsv.
Implementations§
Auto Trait Implementations§
impl Freeze for FreqMap
impl RefUnwindSafe for FreqMap
impl Send for FreqMap
impl Sync for FreqMap
impl Unpin for FreqMap
impl UnsafeUnpin for FreqMap
impl UnwindSafe for FreqMap
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