keyphrase-vectorizers
Set of vectorizers that extract keyphrases with part-of-speech patterns from a collection of text documents and convert them into a document-keyphrase matrix.
Decision gist · record as of 2026-08-14
Yes, if you need POS-pattern-based keyphrase extraction and accept dormant maintenance. The package is stable, has no known vulnerabilities, and integrates cleanly with scikit-learn and spaCy. Install friction is low. However, do not expect active development or rapid bug fixes; treat it as a research tool rather than a production library with ongoing support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a spaCy language model (e.g., en_core_web_sm for English) to be installed separately for POS tagging to work.
- Low friction: pure Python wheel with no compiled dependencies.
- Maintenance is dormant—last commit was 2024-11-08 and no release since 2024-05-02, so expect no active bug fixes or feature updates, though the codebase remains stable.
License · maintenance · safety
permissive license (permissive) — BSD 3-Clause permissive license: you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions, provided you include the license text.
last release 2024-05-02 (834 days) · last repo commit 2024-11-08 · 268 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 87,242 downloads/mo, #13,808 on PyPI
Alternatives
Verify before relying
pip install keyphrase-vectorizers
from keyphrase_vectorizers import KeyphraseCountVectorizer
docs = ["Supervised learning maps inputs to outputs based on training examples."]
vectorizer = KeyphraseCountVectorizer()
vectorizer.fit(docs)
matrix = vectorizer.transform(docs).toarray()
keyphrases = vectorizer.get_feature_names_out()- Whether spaCy model download is automatic or requires manual setup before first use.
- Performance characteristics with large document collections or very long texts.
- Compatibility with recent spaCy versions beyond what the fact sheet indicates.
What it is and what it does
KeyphraseVectorizers wraps scikit-learn's CountVectorizer and TfidfVectorizer to extract keyphrases based on part-of-speech patterns rather than fixed n-gram ranges. It uses spaCy to tag words grammatically, then filters them by regex patterns (e.g., adjectives followed by nouns) to identify semantically meaningful phrases. The result is a document-keyphrase matrix where rows are documents and columns are unique keyphrases, with cell values representing keyphrase frequency or TF-IDF scores.
The package is designed for unsupervised keyphrase extraction across multiple languages and integrates with the PatternRank algorithm and KeyBERT for enhanced keyword discovery. It depends on numpy, spacy, scikit-learn, scipy, nltk, and related libraries. The codebase originated from research on the PatternRank paper and has remained stable but dormant since mid-2024.
Use it for
- Extract grammatically coherent keywords from research papers or documents for indexing and retrieval.
- Build document-keyphrase matrices for topic modeling with BERTopic or other unsupervised clustering.
- Combine with KeyBERT using PatternRank to rank candidate keyphrases by semantic similarity.
- Preprocess multilingual document collections where n-gram ranges fail to capture meaningful phrases.
- Replace standard CountVectorizer in NLP pipelines when grammatical accuracy matters more than coverage.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need POS-pattern-based keyphrase extraction and accept dormant maintenance.
The package is stable, has no known vulnerabilities, and integrates cleanly with scikit-learn and spaCy. Install friction is low. However, do not expect active development or rapid bug fixes; treat it as a research tool rather than a production library with ongoing support.
Install
keyphrase-vectorizers on PyPI
Before you install
Low friction: pure Python wheel with no compiled dependencies. Maintenance is dormant—last commit was 2024-11-08 and no release since 2024-05-02, so expect no active bug fixes or feature updates, though the codebase remains stable.
Requires a spaCy language model (e.g., en_core_web_sm for English) to be installed separately for POS tagging to work.
License in practice
BSD 3-Clause permissive license: you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions, provided you include the license text.
Quickstart
pip install keyphrase-vectorizers
from keyphrase_vectorizers import KeyphraseCountVectorizer
docs = ["Supervised learning maps inputs to outputs based on training examples."]
vectorizer = KeyphraseCountVectorizer()
vectorizer.fit(docs)
matrix = vectorizer.transform(docs).toarray()
keyphrases = vectorizer.get_feature_names_out()
Verify before relying
- Whether spaCy model download is automatic or requires manual setup before first use.
- Performance characteristics with large document collections or very long texts.
- Compatibility with recent spaCy versions beyond what the fact sheet indicates.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 8 packagesnumpyspacyspacy-transformersspacy-curated-transformersnltkscikit-learnscipypsutil |
| Maintenance | Dormant 834 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 87,242 / month, #13,808 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Information Analysis |
Evidence: keyphrase_vectorizers-0.0.13-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “keyphrase extraction pos patterns”
- keyphrase-vectorizersExtracts keyphrases from text documents using part-of-speech patterns…
- soynlpUnsupervised Korean natural language processing toolkit that extracts…
- yakeYAKE extracts keywords from text documents using unsupervised…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also keybert · yake · textacy · rake-nltk · ja-ginza · pytextrank · stop-words · textblob · bertopic · ginza