Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yaa110/rake-rs
Multilingual implementation of RAKE algorithm for Rust
https://github.com/yaa110/rake-rs
algorithm rake rust rust-crate text-processing
Last synced: about 1 month ago
JSON representation
Multilingual implementation of RAKE algorithm for Rust
- Host: GitHub
- URL: https://github.com/yaa110/rake-rs
- Owner: yaa110
- License: apache-2.0
- Created: 2018-03-17T11:46:09.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-07T00:38:18.000Z (8 months ago)
- Last Synced: 2024-10-28T02:18:43.115Z (about 2 months ago)
- Topics: algorithm, rake, rust, rust-crate, text-processing
- Language: Rust
- Homepage: https://crates.io/crates/rake
- Size: 26.4 KB
- Stars: 33
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-rust-cn - yaa110/rake-rs - ci.org/yaa110/rake-rs.svg?branch=master">](https://travis-ci.org/yaa110/rake-rs) (Libraries / Text processing)
- awesome-rust - yaa110/rake-rs - ci.org/yaa110/rake-rs.svg?branch=master">](https://travis-ci.org/yaa110/rake-rs) (Libraries / Text processing)
- awesome-rust - yaa110/rake-rs
- awesome-rust-cn - yaa110/rake-rs
- awesome-rust-zh - yaa110/rake-rs - Rake(快速自动关键字提取) 算法的多语言实现[<img src="https://api.travis-ci.org/yaa110/rake-rs.svg?branch=master">](https://travis-ci.org/yaa110/rake-rs) (库 / 文本处理)
README
# RAKE.rs
[![crates.io](https://img.shields.io/crates/v/rake.svg)](https://crates.io/crates/rake) [![Documentation](https://img.shields.io/badge/Docs-rake-blue.svg)](https://docs.rs/rake) ![Crates.io](https://img.shields.io/crates/l/rustc-serialize.svg) [![Test](https://github.com/yaa110/rake-rs/actions/workflows/test.yml/badge.svg)](https://github.com/yaa110/rake-rs/actions/workflows/test.yml)
The library provides a multilingual implementation of [Rapid Automatic Keyword Extraction (RAKE)](http://onlinelibrary.wiley.com/doi/10.1002/9780470689646.ch1/summary) algorithm for Rust.
## How to Use
- Append `rake` to `dependencies` of `Cargo.toml`:
```toml
rake = "0.3"
```- Import modules:
```rust
use rake::*;
```- Create a new instance of `Rake` struct:
```rust
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:
```rust
keywords.iter().for_each(
|&KeywordScore {
ref keyword,
ref score,
}| println!("{}: {}", keyword, score),
);
```