chatopera / node-synonyms

:ferris_wheel: 中文近义词工具包,聊天机器人
https://www.npmjs.com/package/node-synonyms
Other
69 stars 14 forks source link

Python version has different result: "旅游", "游历" #3

Open wcchh opened 5 years ago

wcchh commented 5 years ago

As title. I got 0.17365640608647942 from below :

var synonyms = require("node-synonyms");
synonyms.compare("旅游", "游历") 
    .then(function (similarity) {
        console.log(similarity);
    });

But as Synonyms (Python) has value: 0.872 for this pair. print("旅游, 游历: %s" % (synonyms.compare("旅游", "游历")))

Please let me know how to correct it, thanks in advance.