Crates.io | rake |
lib.rs | rake |
version | 0.3.4 |
source | src |
created_at | 2018-03-17 11:53:07.329873 |
updated_at | 2024-04-07 00:36:40.532061 |
description | Rust implementation of Rapid Automatic Keyword Extraction (RAKE) algorithm |
homepage | https://github.com/yaa110/rake-rs |
repository | https://github.com/yaa110/rake-rs |
max_upload_size | |
id | 56099 |
size | 31,091 |
The library provides a multilingual implementation of Rapid Automatic Keyword Extraction (RAKE) algorithm for Rust.
rake
to dependencies
of Cargo.toml
:rake = "0.3"
use rake::*;
Rake
struct:let text = "a long text";
let sw = StopWords::from_file("path/to/stop_words_list.txt").unwrap();
let r = Rake::new(sw);
let keywords = r.run(text);
keywords.iter().for_each(
|&KeywordScore {
ref keyword,
ref score,
}| println!("{}: {}", keyword, score),
);