keyphrases

Crates.iokeyphrases
lib.rskeyphrases
version0.3.3
sourcesrc
created_at2023-03-24 05:14:07.999223
updated_at2024-03-24 10:44:28.457408
descriptionRapid Automatic Keyword Extraction (RAKE) implementation in Rust
homepage
repositoryhttps://github.com/jjoeldaniel/keyphrases.rs
max_upload_size
id819056
size23,838
Joel (jjoeldaniel)

documentation

https://docs.rs/keyphrases/

README

keyphrases.rs

crates.io link documentation https://github.com/jjoeldaniel/keyphrases.rs/actions/workflows/ci.yml downloads license

keyphrases.rs is a Rapid Automatic Keyword Extraction (RAKE) algorithm implementation in Rust.

Installation

To use keyphrases.rs in your Rust project, add the following line to your Cargo.toml file:

[dependencies]
keyphrases = "0.3.3"

Usage

  1. Create a new instance of KeyPhraseExtractor by passing the string you want to extract key phrases from:

    let text = "This is the text to extract key phrases from.";
    let extractor = KeyPhraseExtractor::new(text);
    
  2. Call the desired methods on the extractor instance to extract the relevant information:

     let keywords = extractor.get_keywords();
     let word_freq = extractor.get_word_freq();
     let word_deg = extractor.get_word_deg();
     let content_words = extractor.get_content_words();
     let content_phrases = extractor.get_content_phrases();
    

    Each method returns the relevant information as described in the function docs below.

Documentation

License

keyphrases.rs is licensed under the WTFPL License. See the LICENSE file for more details.

Commit count: 129

cargo fmt