Overview of text2vec features
mastertext2vec is a library designed to convert text (including words, sentences, and paragraphs) into vector matrices (embeddings). It provides implementations for several text representation and similarity calculation models, including:
- Word2Vec: Implements word vector retrieval using large-scale Chinese word vector data (e.g., Tencent AI Lab's lightweight version). It supports sentence representation by averaging word vectors.
- SBERT (Sentence-BERT): A model that balances performance and efficiency by using supervised training on BERT and softmax classification functions. It uses cosine similarity on sentence vectors for text matching.
- CoSENT (Cosine Sentence): A model utilizing a ranking loss function that makes the training process closer to prediction, offering better convergence and performance than Sentence-BERT.
- BGE (BAAI General Embedding): A model pre-trained using the RetroMAE method and fine-tuned with contrastive learning.
Detailed information on text vectorization methods can be found in the project wiki.