Installation¶
From PyPI¶
The simplest way to install rapid_textrank:
The import name is rapid_textrank.
Optional Extras¶
spaCy support¶
If you want to use the JSON interface with spaCy-tokenized input, or the spaCy pipeline component:
You will also need a spaCy model:
Topic model support¶
If you plan to use TopicalPageRank with topic_weights_from_lda (gensim LDA integration):
This installs gensim as an extra dependency.
From Source¶
Requirements: Rust 1.70+, Python 3.9+
git clone https://github.com/xang1234/rapid-textrank
cd rapid_textrank
pip install maturin
maturin develop --release
This compiles the Rust core and installs the package into your current Python environment.
Verifying the Installation¶
If the import succeeds and returns a result list, the installation is working correctly.