shibing624/text2vec

text2vec, text to vector. 文本向量表征工具,把文本转化为向量矩阵,实现了Word2Vec、RankBM25、Sentence-BERT、CoSENT等文本表征、文本相似度计算模型,开箱即用。

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 37 minutes ago
Added to GitGenius on September 13th, 2026
Created on November 12th, 2019
Open Issues & Pull Requests: 7 (+0)
GitHub issues: Enabled
Number of forks: 428
Total Stargazers: 4,975 (+0)
Total Subscribers: 35 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 14.5 hours
Mean response time: 21.4 hours
90th percentile: 2.6 days
Tracked items: 19

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 2
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 257 days
Stale 30+ days: 2
Stale 90+ days: 2

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • question (11)
  • bug (3)
  • wontfix (2)
  • enhancement (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

text2vec is a Python library that converts text into vector representations using multiple embedding and similarity computation models.

The tool addresses the need to transform text at various granularities—words, sentences, and paragraphs—into numerical vectors suitable for machine learning tasks. It implements several established approaches including Word2Vec, RankBM25, BERT, Sentence-BERT, and CoSENT, allowing developers to compute text similarity and perform semantic matching without building these models from scratch. The library is designed for immediate use with pre-trained models available through integration with model hosting platforms.

Developers should choose this tool when building applications requiring text similarity calculations, semantic search, or sentence embeddings in Python environments. It suits projects that need multiple embedding strategies available in a single package, particularly those working with Chinese text or multilingual content where specialized models have been trained. The tool includes command-line utilities for batch processing text vectorization and supports distributed inference across multiple GPUs and CPUs, making it practical for production workloads beyond simple prototyping.

The project maintains active development with regular releases introducing new capabilities. Recent work has focused on expanding model support, including training infrastructure for multiple GPUs and new pre-trained models optimized for Chinese and multilingual semantic matching tasks. The maintainers have published custom-trained models addressing specific language pairs and matching scenarios, indicating ongoing refinement based on evaluation results across test datasets.