pub struct UPOSFreqDict {
pub counts: HashMap<UPOS, isize>,
}
Expand description
Tracks the number of times any given UPOS is associated with a noun phrase. Used as the baseline for the chunker.
Fields§
§counts: HashMap<UPOS, isize>
The # of times each UPOS
was not part of an NP subtracted from the number of times it
was.
Implementations§
Source§impl UPOSFreqDict
impl UPOSFreqDict
pub fn is_likely_np_component(&self, upos: &UPOS) -> bool
Trait Implementations§
Source§impl Chunker for UPOSFreqDict
impl Chunker for UPOSFreqDict
Source§impl Clone for UPOSFreqDict
impl Clone for UPOSFreqDict
Source§fn clone(&self) -> UPOSFreqDict
fn clone(&self) -> UPOSFreqDict
Returns a duplicate 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 UPOSFreqDict
impl Debug for UPOSFreqDict
Source§impl Default for UPOSFreqDict
impl Default for UPOSFreqDict
Source§fn default() -> UPOSFreqDict
fn default() -> UPOSFreqDict
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UPOSFreqDict
impl<'de> Deserialize<'de> for UPOSFreqDict
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 UPOSFreqDict
impl RefUnwindSafe for UPOSFreqDict
impl Send for UPOSFreqDict
impl Sync for UPOSFreqDict
impl Unpin for UPOSFreqDict
impl UnwindSafe for UPOSFreqDict
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