Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/murtaza98/similarsentencegrouping
Given a list of sentences, group the similar ones together.
https://github.com/murtaza98/similarsentencegrouping
Last synced: about 1 month ago
JSON representation
Given a list of sentences, group the similar ones together.
- Host: GitHub
- URL: https://github.com/murtaza98/similarsentencegrouping
- Owner: murtaza98
- Created: 2020-02-04T18:27:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-21T21:55:25.000Z (almost 2 years ago)
- Last Synced: 2024-10-03T08:59:33.774Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimilarSentenceGrouping
### Installation
create virtual env then install the modules in requirements.txt file
`pip install requirements.txt`Download Bert-Base Uncased model, a pretrained Bert model from [here](https://github.com/hanxiao/bert-as-service#1-download-a-pre-trained-bert-model) and paste it in models folder.
### Usage
1. First start the bert server
`bert-serving-start -cpu -model_dir models/uncased_L-12_H-768_A-12/ -num_worker=1`2. Then start the flask server.
`python server.py`3. Lastly, send a POST request to endpoint `http://127.0.0.1:2000/api/rankings`
POST request format
`{
"questions": [
"fees for college",
"documents are required for admission"
]
}`