pub struct StreamingTextProcessor { /* private fields */ }Expand description
Memory-efficient streaming text processor
Processes large text datasets in chunks to minimize memory usage while maintaining feature extraction quality.
Implementations§
Source§impl StreamingTextProcessor
impl StreamingTextProcessor
Sourcepub fn chunk_size(self, chunk_size: usize) -> Self
pub fn chunk_size(self, chunk_size: usize) -> Self
Set chunk size in characters
Sourcepub fn overlap_size(self, overlap_size: usize) -> Self
pub fn overlap_size(self, overlap_size: usize) -> Self
Set overlap size between chunks
Sourcepub fn min_chunk_words(self, min_words: usize) -> Self
pub fn min_chunk_words(self, min_words: usize) -> Self
Set minimum words per chunk
Sourcepub fn stream_process_with_count_vectorizer(
&self,
large_text: &str,
vectorizer: &mut CountVectorizer,
) -> SklResult<Array2<Float>>
pub fn stream_process_with_count_vectorizer( &self, large_text: &str, vectorizer: &mut CountVectorizer, ) -> SklResult<Array2<Float>>
Process large text with a streaming vectorizer
Sourcepub fn stream_process_with_tfidf(
&self,
large_text: &str,
vectorizer: &mut TfidfVectorizer,
) -> SklResult<Array2<Float>>
pub fn stream_process_with_tfidf( &self, large_text: &str, vectorizer: &mut TfidfVectorizer, ) -> SklResult<Array2<Float>>
Process large text with streaming TF-IDF
Trait Implementations§
Source§impl Clone for StreamingTextProcessor
impl Clone for StreamingTextProcessor
Source§impl Debug for StreamingTextProcessor
impl Debug for StreamingTextProcessor
Auto Trait Implementations§
impl Freeze for StreamingTextProcessor
impl RefUnwindSafe for StreamingTextProcessor
impl Send for StreamingTextProcessor
impl Sync for StreamingTextProcessor
impl Unpin for StreamingTextProcessor
impl UnsafeUnpin for StreamingTextProcessor
impl UnwindSafe for StreamingTextProcessor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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