#nlp #extract #keyword #rake

keyphrases

Rapid Automatic Keyword Extraction (RAKE) implementation in Rust

7 releases

0.3.3 Mar 24, 2024
0.3.2 Apr 9, 2023
0.2.0 Apr 9, 2023
0.1.6 Mar 27, 2023

#342 in Algorithms

Download history 50/week @ 2024-01-22 40/week @ 2024-01-29 40/week @ 2024-02-05 52/week @ 2024-02-12 54/week @ 2024-02-19 102/week @ 2024-02-26 76/week @ 2024-03-04 48/week @ 2024-03-11 200/week @ 2024-03-18 157/week @ 2024-03-25 241/week @ 2024-04-01 180/week @ 2024-04-08 259/week @ 2024-04-15 166/week @ 2024-04-22 136/week @ 2024-04-29 124/week @ 2024-05-06

696 downloads per month

WTFPL license

13KB
135 lines

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.

Dependencies

~2.1–3MB
~53K SLoC