pub struct ParsevalCounts {
pub predicted: usize,
pub gold: usize,
pub matched_labeled: usize,
pub matched_unlabeled: usize,
}Expand description
Sufficient statistics for labeled and unlabeled Parseval.
Fields§
§predicted: usizeNumber of scored constituents in the predicted tree.
gold: usizeNumber of scored constituents in the gold tree.
matched_labeled: usizeNumber of matching labeled constituents.
matched_unlabeled: usizeNumber of matching unlabeled constituents.
Implementations§
Source§impl ParsevalCounts
impl ParsevalCounts
Sourcepub fn add_assign(&mut self, other: Self)
pub fn add_assign(&mut self, other: Self)
Add another sentence’s counts.
Sourcepub fn labeled_precision(self) -> f64
pub fn labeled_precision(self) -> f64
Labeled precision.
Sourcepub fn labeled_recall(self) -> f64
pub fn labeled_recall(self) -> f64
Labeled recall.
Sourcepub fn labeled_f1(self) -> f64
pub fn labeled_f1(self) -> f64
Labeled F1.
Sourcepub fn unlabeled_precision(self) -> f64
pub fn unlabeled_precision(self) -> f64
Unlabeled precision.
Sourcepub fn unlabeled_recall(self) -> f64
pub fn unlabeled_recall(self) -> f64
Unlabeled recall.
Sourcepub fn unlabeled_f1(self) -> f64
pub fn unlabeled_f1(self) -> f64
Unlabeled F1.
Trait Implementations§
Source§impl Clone for ParsevalCounts
impl Clone for ParsevalCounts
Source§fn clone(&self) -> ParsevalCounts
fn clone(&self) -> ParsevalCounts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParsevalCounts
Source§impl Debug for ParsevalCounts
impl Debug for ParsevalCounts
Source§impl Default for ParsevalCounts
impl Default for ParsevalCounts
Source§fn default() -> ParsevalCounts
fn default() -> ParsevalCounts
Returns the “default value” for a type. Read more
impl Eq for ParsevalCounts
Source§impl PartialEq for ParsevalCounts
impl PartialEq for ParsevalCounts
Source§fn eq(&self, other: &ParsevalCounts) -> bool
fn eq(&self, other: &ParsevalCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParsevalCounts
Auto Trait Implementations§
impl Freeze for ParsevalCounts
impl RefUnwindSafe for ParsevalCounts
impl Send for ParsevalCounts
impl Sync for ParsevalCounts
impl Unpin for ParsevalCounts
impl UnsafeUnpin for ParsevalCounts
impl UnwindSafe for ParsevalCounts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.