Multilingual implementation of RAKE algorithm for Rust



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.1"
  • Import modules:
extern crate rake;
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 =;
  • Iterate over keywords:
    |&KeywordScore {
        ref keyword,
        ref score,
    }| println!("{}: {}", keyword, score),