pub struct DeltaStackProcessor { /* private fields */ }Expand description
Core implementation of the Δ-Stack Monoid algorithm
This struct encapsulates the three-phase sentence boundary detection algorithm:
- Scan phase: Process chunks in parallel to compute partial states
- Prefix phase: Compute prefix sums to determine chunk start states
- Reduce phase: Combine partial results with start states to find boundaries
Implementations§
Source§impl DeltaStackProcessor
impl DeltaStackProcessor
Sourcepub fn new(
config: ProcessorConfig,
language_rules: Arc<dyn LanguageRules>,
) -> Self
pub fn new( config: ProcessorConfig, language_rules: Arc<dyn LanguageRules>, ) -> Self
Creates a new DeltaStackProcessor with the given configuration
Sourcepub fn process(
&self,
text: &str,
mode: ExecutionMode,
) -> ProcessingResult<DeltaStackResult>
pub fn process( &self, text: &str, mode: ExecutionMode, ) -> ProcessingResult<DeltaStackResult>
Main processing method that executes the Δ-Stack Monoid algorithm
Auto Trait Implementations§
impl Freeze for DeltaStackProcessor
impl !RefUnwindSafe for DeltaStackProcessor
impl Send for DeltaStackProcessor
impl Sync for DeltaStackProcessor
impl Unpin for DeltaStackProcessor
impl !UnwindSafe for DeltaStackProcessor
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> 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