Practical overview
When it fits
Use it when a Python workflow needs candidate phrases or topics from text as an input to a later step such as indexing, review or analysis.
Who it is for
- Developers adding phrase extraction to Python document-processing pipelines
- Teams preparing text for indexing or review
- Researchers and analysts exploring candidate topics in text collections
Documented uses
- Extract candidate key phrases from a text document.
- Generate unigram, bigram or trigram phrases without supplying n-gram settings.
- Process long text inputs by splitting them into smaller chunks internally.
Requirements & limits
The repository identifies the project as open source and lists the MIT license.
- The documented interface is a Python library, so it fits code-based workflows rather than a standalone document-management process.
- The README describes automatic unigram, bigram or trigram extraction and internal chunking for long text.
- The repository provides a Hugging Face Spaces demo link in addition to the package interface.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Extract key phrases from text in Python
Use the documented library interface to pass a text document to KeyPhraseTransformer and receive extracted phrases.
Before you start
- Python environment with pip
- Keyphrasetransformer package
Steps
Install the package with the command below.
pip install keyphrasetransformerImport
KeyPhraseTransformerfromkeyphrasetransformerand create an instance.Pass a text string to the instance's
get_key_phrasesmethod.
Expected outcome
A list of extracted candidate phrases, as shown in the README example.
Guide limitations
- The documented example returns phrases; it does not describe a broader indexing or topic-analysis workflow.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 October 2026
- Original website title
- Shivanandroy/KeyPhraseTransformer · Official homepage title · retained in its source language

