shibing624/text2vec
text2vec, text to vector. 文本向量表征工具,把文本转化为向量矩阵,实现了Word2Vec、RankBM25、Sentence-BERT、CoSENT等文本表征、文本相似度计算模型,开箱即用。 observed · 2026-08-28
Health v2 · maintenance only
53/100
- Activity 67
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2486
- days_rel: n/a
- days_push: 200
- n_releases_24m: 0
Adoption not part of the score
4974 stars · 428 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Python library that converts text (words, sentences, paragraphs) into vector embeddings, implementing Word2Vec, RankBM25, BERT, Sentence-BERT, and CoSENT models. It provides ready-to-use text representation and semantic similarity computation, with pretrained Chinese and multilingual models and a CLI for batch vectorization.
Use cases
- compute semantic similarity between two sentences
- generate sentence embeddings for Chinese text
- build a semantic search or retrieval system
- encode documents into vectors for clustering
- train a custom text matching model with CoSENT
- find duplicate or paraphrase questions in a corpus
When to choose
- you need out-of-the-box sentence embeddings, especially for Chinese or multilingual text
- you want to compare multiple text similarity models (BM25, SBERT, CoSENT) in one library
- you need pretrained matching models with a simple Python API or CLI
When to avoid
- you need production-scale vector database features like ANN indexing and filtering
- you only need English embeddings and prefer the broader sentence-transformers ecosystem
- you need the latest LLM-based embedding models rather than BERT-era encoders
Facets
library · maturity active
nlp machine-learning search-engine machine-learning python embeddings sentence-embeddings text-similarity word2vec sentence-bert cosent chinese-nlp semantic-search natural-language-processing search
3 sources
- readme: https://github.com/shibing624/text2vec · fetched 2026-08-28 · 9cf8cc706fe5
- homepage: https://pypi.org/project/text2vec/ · fetched 2026-08-29 · 4b4e8fead74a
- registry_pypi: https://pypi.org/pypi/text2vec/json · fetched 2026-08-29 · 01fc72ad8848
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| shibing624/text2vec | main | 53 |
For agents
markdown · JSON · MCP: product_card(name="shibing624/text2vec")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem