You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use wordcloud::*;use wordcloud::font::*;// Create the default StopWords set using the "stopwords" crate featurelet stop_words = StopWords::default();let input_text = io::read_string_from_file("input_text.txt").unwrap();let ranked = RankedWords::rank(
input_text
.split_whitespace()// filter out the StopWords using the iterator function// a similar named function also exists for rayon's ParallelIterators.filter_stop_words(&stop_words)// filter out everything that is just a number.filter(
|x| x.parse::<f64>().is_err()).collect());// ...