rake

Crates.iorake
lib.rsrake
version0.3.6
created_at2018-03-17 11:53:07.329873+00
updated_at2025-02-20 20:27:30.700569+00
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
size34,001
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: 36

cargo fmt