The main idea drives from the following paper. When you use this code, please cite this paper:
@inproceedings{pei2016combining, title={Combining word embedding and semantic lexicon for Chinese word similarity computation}, author={Pei, Jiahuan and Zhang, Cong and Huang, Degen and Ma, Jianjun}, booktitle={International Conference on Computer Processing of Oriental Languages}, pages={766--777}, year={2016}, organization={Springer} }
And the Cilin module is writen by ashengtx/CilinSimilarity, thank their contributions