Build sentence embeddings encoder for searching purpose.
NOTE: the project is dividied to three parts, data preprocess, model training and searching supply. Each part has a directory to keep its codes and data, and common used codes and data is placed in tools
directory.
./model_data_preprocess.sh
cd sentence_embeddings_model
python bin/model.py
./search_data_preprocess.sh
cd sentence_embeddings_search
supervisord -c conf/sup.qsearch.conf
After process enabled, url (e.g. http://211.159.179.239:6008/in/nlp/sentence/search?query=产后失眠怎么办&size=100) can be visited.
For more infomation of model and searching, please refer to model_analysis