pub struct AnalysisOptions {
pub ngram: usize,
pub context: usize,
pub export_format: ExportFormat,
pub entities_only: bool,
pub combine: bool,
pub stem_mode: StemMode,
pub stem_require_detected: bool,
}Expand description
Parameters controlling analysis and export behavior.
Fields§
§ngram: usizeN-gram size (>=1 recommended; 2 = bigrams).
context: usizeContext window (±N) for context statistics and PMI.
export_format: ExportFormatExport format for files (TXT/CSV/TSV/JSON).
entities_only: boolIf true, export only Named Entities (skips other tables).
combine: boolIf true, aggregate all files into one corpus (Map-Reduce). Otherwise per-file outputs.
stem_mode: StemModeStemming mode (off/auto/force).
stem_require_detected: boolIf true and stem_mode == Auto, require detectable & supported language; otherwise fail.
- Per-file: file is skipped and reported in
failed_files, run continues (success). - Combined: the whole run aborts with an error to avoid mixed stemming.
Trait Implementations§
Source§impl Clone for AnalysisOptions
impl Clone for AnalysisOptions
Source§fn clone(&self) -> AnalysisOptions
fn clone(&self) -> AnalysisOptions
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 moreAuto Trait Implementations§
impl Freeze for AnalysisOptions
impl RefUnwindSafe for AnalysisOptions
impl Send for AnalysisOptions
impl Sync for AnalysisOptions
impl Unpin for AnalysisOptions
impl UnwindSafe for AnalysisOptions
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<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