keyphrases.rs
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:
[]
= "0.3.3"
Usage
-
Create a new instance of
KeyPhraseExtractorby passing the string you want to extract key phrases from:let text = "This is the text to extract key phrases from."; let extractor = new; -
Call the desired methods on the
extractorinstance 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.