NLP tools for chatbot-like applications
Top 10.0% on sourcepulse
This repository provides a Chinese synonym toolkit for natural language processing tasks such as RAG, intelligent Q&A, and semantic similarity. It offers APIs for finding synonyms, comparing sentence similarity, and extracting keywords, targeting developers and researchers working with Chinese NLP.
How It Works
The toolkit leverages word2vec models trained on a large corpus to compute semantic similarity. It provides functions to find nearby synonyms, compare sentence similarity using word embeddings, and extract keywords based on semantic importance. The approach aims for efficient and accurate synonym discovery and semantic understanding in Chinese.
Quick Start & Requirements
pip install -U synonyms
SYNONYMS_DL_LICENSE
environment variable.Highlighted Details
nearby
, compare
, seg
(segmentation), keywords
, and retrieving word vectors.demo.py
) for usage examples.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
synonyms.seg
) does not remove stop words or punctuation.1 week ago
Inactive