问题标签 [wordnet]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 在 NLTK 中导入 WordNet
我想导入wordnet
字典,但是当我导入字典表单时,wordnet
我看到了这个错误:
我在这个目录中安装了 wordnet2.1 但我无法导入请帮我解决这个问题
sparql - How to find the "lexical file" in Wordnet?
If you look at the original Wordnet search and select "Display options: Show Lexical File Info", you'll see an extremely useful classification of words called lexical file. Eg for "filling" we have:
The first thing in brackets is the "lexical file". Unfortunately I have not been able to find a SPARQL endpoint that provides this info
The latest RDF translation of Wordnet 3.0 points to two things:
Talis SPARQL endpoint. Use eg this query to check there's no such info:
DESCRIBE <http://purl.org/vocabularies/princeton/wn30/synset-chair-noun-1>
W3C's mapping description. Appendix D "Conversion details" describes something useful:
wn:classifiedByTopic
. But it's not the same as lexical file, and is quite incomplete. Eg "chair" has nothing, while one of the senses of "completion" is in the topic "American Football"DESCRIBE <http://purl.org/vocabularies/princeton/wn30/synset-completion-noun-1>
-><j.1:classifiedByTopic rdf:resource="http://purl.org/vocabularies/princeton/wn30/synset-American_football-noun-1"/>
The question: is there a public Wordnet query API, or a database, that provides the lexical file information?
php - 使用 wordnet 获取单词的引理
如何使用 Wordnet 获得给定单词的引理。我似乎无法在 wordnet 文档中找到我想要的东西。 http://wordnet.princeton.edu/wordnet/man/wn.1WN.html
例如,对于“books”这个词,我想得到“book”,ashes => ash,booking => book,apples => apple .... 等。
我想在命令行中使用 wordnet 来实现这一点,但我找不到准确的选项来检索这种情况。
一个 php 解决方案也会有很大帮助,因为我最初打算使用 wordnet php API,但他们网站上的当前 API 似乎无法正常工作。
nlp - 使用 WordNet.Net 进行词义消歧
作为一个更大项目的一部分,我需要做一些词义消歧,我遇到了WordNet.Net 我尝试使用下载中的 WordsMatching 项目附带的 wordsensedisambiguator 类,这是我的代码
当我查看结果时,每个单词的 Sense 仍然是 '0' :( 以前有人用过这个,或者任何人都可以弄清楚如何使用 WordSenseDisambiguator 吗?感谢您期待您的快速回复 :)
java - Word Net - 单词同义词和相关的单词结构 - Java 或 Python
我希望使用 WordNet 从一组基本术语中查找类似术语的集合。
例如,单词'discouraged' - 潜在的同义词可能是:daunted, glum, deterred, pessimistic
.
我还想识别潜在的二元语法,例如;beat down, put off, caved in
等等
如何使用 Java 或 Python 提取这些信息?是否有任何托管的 WordNet 数据库/Web 界面允许此类查询?
谢谢!
nlp - wordnet 数据库编辑器
我下载了适用于 Windows (2.1) 的最新 Wordnet 版本,我想在两个动词同义词集之间建立链接。有没有我可以使用的 wordnet synset 编辑器?他们发布了描述其文件结构的文档,但是我不想花时间编写我自己的编辑器。
谢谢
米
java - 用 bfs 搜索
我已经从 wordnet 中检索同义词集并将其作为数组返回。这是我的代码的一部分
直到这一行,我已经成功检索了同义词集。我要做的是在搜索 WordNet 同义词集时实现广度优先搜索。我正在调用 RiWordnet 库中的 getAllSynsets 方法,该库将所有同义词存储在 wordnet 中。我尝试使用循环(if..else),但我不确定在哪里停止搜索。使用 BFS 应该知道搜索的范围,其中搜索同义词被标记为被访问的节点。这是我想在搜索同义词时使用 BFS 实现的概念。
例如:
有些人还建议我应用 HashSet 而不是 BFS。谁能帮我?先感谢您..
perl - 使用 perl 的 Wordnet 同义词集
我安装了Wordnet::Similarity和Wordnet::QueryData作为计算这些模块附带的信息内容分数和概率的简单方法。但我被困在这个基本问题上:给定一个单词,打印 n 个与之相似的单词——迭代同义词集并做join
.
使用wn
命令并将其与大量的管道一起使用tr
,sort | uniq
我可以获得所有单词:
输出
但它有点讨厌,需要进一步清理。
我的脚本如下所示,我想要得到的是 cat#n1...8 中的所有单词。
脚本
输出:
脚本
输出:
PS 我以前从未写过 perl,但从早上起就一直在研究 perl 脚本——现在可以理解基本的东西了。只需要知道是否有使用 api 文档的更简洁的方法来执行此操作 - 无法从 api 或用户组档案中找出。
更新:
我想我会解决:
sed 岩石!
python - 如何使用 Python 在 Wordnet 中查找相关性
我想使用 Python 找到两个单词之间的相关性(而不是相似性)。hso(Hirst 和 St-Onge,1998)、lesk(Banerjee 和 Pedersen,2003)和向量(Patwardhan,2003)算法在这里用 Perl 实现,但我似乎在 nltk 库中找不到与 Python 相同的算法。
我需要使用 Python,因为它是 Python 中一个更大的团队项目的一部分。有什么线索吗??
python - nltk.corpus.wordnet 的哪个相似度函数适合查找两个单词的相似度?
哪个相似度函数nltk.corpus.wordnet
适合查找两个单词的相似度?
我想使用一个函数 forword clustering
和yarowsky
algorightmcollocation
在大文本中查找类似内容。