genpark-tfidf-vectorizer-cosine-similarity-skill
mcp
Warn
Health Warn
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 7 GitHub stars
Code Pass
- Code scan — Scanned 6 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
TF-IDF sublinear vectorizer with smooth inverse document frequency and pairwise cosine similarity.
README.md
genpark-tfidf-vectorizer-cosine-similarity-skill
TF-IDF sublinear vectorizer with smooth inverse document frequency and pairwise cosine similarity.
Part of the GenPark AI Agent Skills Matrix. Production-ready, zero external dependencies, native Python 3.9+ standard library.
Architecture
flowchart TD
A[Text Input Corpus] --> B[Tokenization & Subword Extraction]
B --> C[Vector & Similarity Kernels]
C --> D[Ranked / Segmented Output]
D --> E[MCP Protocol Endpoint]
Features
- Zero Third-Party Dependencies: Pure Python standard library (
collections,re,math). - High-Performance NLP: Subword BPE merges, Okapi BM25 ranking, and Damerau-Levenshtein metrics.
- Native MCP Protocol Support: Integrated JSON-RPC 2.0 stdio server ready for Claude Desktop, Cursor, and Windsurf.
Installation
pip install genpark-tfidf-vectorizer-cosine-similarity-skill
Or clone directly:
git clone https://github.com/alphaparkinc/genpark-tfidf-vectorizer-cosine-similarity-skill.git
cd genpark-tfidf-vectorizer-cosine-similarity-skill
python example_usage.py
Quick Start
from client import *
# Refer to example_usage.py for end-to-end execution
Model Context Protocol (MCP) Setup
Add to your claude_desktop_config.json or cursor.json:
{
"mcpServers": {
"genpark-tfidf-vectorizer-cosine-similarity-skill": {
"command": "python",
"args": ["-m", "genpark-tfidf-vectorizer-cosine-similarity-skill.mcp_server"]
}
}
}
License
MIT License. Copyright (c) 2026 AlphaPark Inc. & Alpha-Park.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found