pub struct DiscourseStats {
pub abstract_anaphor_count: usize,
pub event_trigger_count: usize,
pub shell_noun_count: usize,
pub avg_sentence_length: f64,
pub multi_sentence_examples: usize,
pub discourse_complexity: f64,
}Expand description
Statistics about discourse-level features in a dataset.
Useful for comparing datasets that contain abstract anaphora, event mentions, or coreference chains.
Fields§
§abstract_anaphor_count: usizeNumber of potential abstract anaphors (“this”, “that”, etc.)
event_trigger_count: usizeNumber of event triggers detected
shell_noun_count: usizeNumber of shell nouns detected
avg_sentence_length: f64Average sentence length
multi_sentence_examples: usizeNumber of multi-sentence examples
discourse_complexity: f64Estimated discourse complexity (0-1)
Trait Implementations§
Source§impl Clone for DiscourseStats
impl Clone for DiscourseStats
Source§fn clone(&self) -> DiscourseStats
fn clone(&self) -> DiscourseStats
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 moreSource§impl Debug for DiscourseStats
impl Debug for DiscourseStats
Source§impl<'de> Deserialize<'de> for DiscourseStats
impl<'de> Deserialize<'de> for DiscourseStats
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 DiscourseStats
impl RefUnwindSafe for DiscourseStats
impl Send for DiscourseStats
impl Sync for DiscourseStats
impl Unpin for DiscourseStats
impl UnsafeUnpin for DiscourseStats
impl UnwindSafe for DiscourseStats
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more