This is a simple NLP library with a list of algorithms related to keyword extraction:
The full list of the algorithms in this library:
Upcoming algorithms: - YAKE
Add the library to your Cargo.toml
:
toml
[dependencies]
keyword-extraction = "1.2.0"
Or use cargo add:
bash
cargo add keyword-extraction
It is possible to enable or disable features:
"tf_idf"
: TF-IDF algorithm;"rake"
: RAKE algorithm;"text_rank"
: TextRank algorithm;"all"
: all algorithms;"parallel"
: parallelization of the algorithms with Rayon;Default features: "tf_idf"
.
NOTE: "parallel"
feature is only recommended for large documents, it exchanges memory for computation resourses.
This project is licensed under the GNU Lesser General Public License v3.0. See the Copying and Copying Lesser files for details.