Crate text_analysis

Source

Structs§

AnalysisReport
Analysis report for a (single or combined) analysis run
AnalysisResult
Struct with all statistics for a text
PmiEntry
Struct for PMI Collocations (for test compatibility and export)

Enums§

ExportFormat
Supported export formats

Functions§

analyze_path
Analyze all files as separate documents (“default mode”)
analyze_path_combined
Analyze all found files as a single corpus (“–combine” mode).
analyze_text
Main text analysis function.
collect_files
Recursively collect all .txt and .pdf files from a given path.
export_results
Export results to TXT/CSV/TSV/JSON with correct file naming.
load_stopwords
Load stopwords from file if given; else empty set.
print_failed_files
Print any files that failed to be processed.