问题描述
我正在尝试构建一个智能搜索引擎应用程序,该应用程序获取Question中单词的同义词,并使用每个生成的同义词查询我的数据库
i'm trying to build a smart search engine application that gets synonyms of the words in the Question and Query my database with each of the generated synonyms
问题是我正在寻找一种方法来使用字典或其他方法来获取问题"中单词的所有同义词.最终可能会提供1-直接同义词,例如:文件>电影,足球>足球2-可以提供一个匹配字符串,例如:人口数量>公民数(可选)3-快速可靠的东西.宁愿离线托管而不是服务API
the problem is that i'm searching for a way to get all synonyms of the words in the Question using a dictionary or something. that could in the end offers1- direct synonyms like : file > movie , football > soccer2- could offer a matchstring like : population size > number of citizens (optional )3- something that is fast and reliable . prefered to be hosted offline not an API for a service
我探索了:
- WordNet but the problem is that it takes a lot of time due to that it's used online
- Watson synonyms not very efficient , and it takes a lot of , (api to an online service )
我想知道是否还有其他有效的替代方法
i wonder if there are some other efficient alternatives
推荐答案
您可以使用 WordNet脱机
这篇关于离线同义词同义词用于搜索应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!