Docs.rs
text_analysis-0.3.5
text_analysis 0.3.5
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
ArdentEmpiricist
Dependencies
chrono ^0.4.38
normal
pdf-extract ^0.7.7
normal
Versions
85.71%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
text_
analysis
0.3.5
All Items
Crate Items
Functions
Crate
text_analysis
Copy item path
Source
Functions
ยง
count_
words
Takes &Vec
and counts the quantity of each word. Returns Hashmap<String,u32>, with String being the word and u32 the quantity
get_
index_
max
Get maximum index and guarantee that index does not exceed total length of Vec
get_
index_
min
Get minimum index and guarantee that index is alway >=0
save_
file
save file to path. Return result.
sort_
map_
to_
vec
Sort words in HashMap<Word, Frequency> according to frequency into Vec<String, u32>.
trim_
to_
words
Splits String into single words as Vector
. Splits String at whitespaces and removes chars like , or ?. Change the relevant line to remove or add chars from provided String.