pub struct NarrativeContext {
pub entity_mentions: HashMap<String, usize>,
/* private fields */
}Expand description
A sliding window of recently generated passages for repetition detection.
Fields§
§entity_mentions: HashMap<String, usize>Entity mention counts for pronoun decisions.
Implementations§
Trait Implementations§
Source§impl Clone for NarrativeContext
impl Clone for NarrativeContext
Source§fn clone(&self) -> NarrativeContext
fn clone(&self) -> NarrativeContext
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 NarrativeContext
impl Debug for NarrativeContext
Auto Trait Implementations§
impl Freeze for NarrativeContext
impl RefUnwindSafe for NarrativeContext
impl Send for NarrativeContext
impl Sync for NarrativeContext
impl Unpin for NarrativeContext
impl UnsafeUnpin for NarrativeContext
impl UnwindSafe for NarrativeContext
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