pub struct FreqDict {
pub mapping: HashMap<String, UPOS>,
}
Expand description
A mapping between words (normalized to lowercase) and their most common UPOS tag.
Can be used as a minimally accurate Tagger
.
Fields§
§mapping: HashMap<String, UPOS>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FreqDict
impl<'de> Deserialize<'de> for FreqDict
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FreqDict
impl RefUnwindSafe for FreqDict
impl Send for FreqDict
impl Sync for FreqDict
impl Unpin for FreqDict
impl UnwindSafe for FreqDict
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