rake

Crates.iorake
lib.rsrake
version0.3.4
sourcesrc
created_at2018-03-17 11:53:07.329873
updated_at2024-04-07 00:36:40.532061
descriptionRust implementation of Rapid Automatic Keyword Extraction (RAKE) algorithm
homepagehttps://github.com/yaa110/rake-rs
repositoryhttps://github.com/yaa110/rake-rs
max_upload_size
id56099
size31,091
embedded-nal (github:rust-embedded-community:embedded-nal)

documentation

https://docs.rs/rake

README

RAKE.rs

crates.io Documentation Crates.io Test

The library provides a multilingual implementation of Rapid Automatic Keyword Extraction (RAKE) algorithm for Rust.

How to Use

  • Append rake to dependencies of Cargo.toml:
rake = "0.3"
  • Import modules:
use rake::*;
  • Create a new instance of 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);
  • Iterate over keywords:
keywords.iter().for_each(
    |&KeywordScore {
        ref keyword,
        ref score,
    }| println!("{}: {}", keyword, score),
);
Commit count: 33

cargo fmt