gpt4 book ai didi

sparql - 如何在 Wordnet 中找到 "lexical file"?

转载 作者:行者123 更新时间:2023-12-04 17:04:21 24 4
gpt4 key购买 nike

如果您查看 original Wordnet search并选择“显示选项:显示词汇文件信息”,您将看到一个非常有用的单词分类,称为 词汇文件 .例如,对于“填充”,我们有:

   <noun.substance>S: (n) filling, fill (any material that fills a space or container)
<noun.process>S: (n) filling (flow into something (as a container))
<noun.food>S: (n) filling (a food mixture used to fill pastry or sandwiches etc.)
<noun.artifact>S: (n) woof, weft, filling, pick (the yarn woven across the warp yarn in weaving)
<noun.artifact>S: (n) filling ((dentistry) a dental appliance consisting of ...)
<noun.act>S: (n) filling (the act of filling something)

括号中的第一件事是“词法文件”。不幸的是,我找不到提供此信息的 SPARQL 端点
  • latest RDF translation Wordnet 3.0 指出两件事:
  • Talis SPARQL endpoint .使用例如这个查询来检查没有这样的信息:
    DESCRIBE <http://purl.org/vocabularies/princeton/wn30/synset-chair-noun-1>
  • W3C's mapping description .附录 D“转换详细信息”描述了一些有用的内容:wn:classifiedByTopic .
    但是和不一样词汇文件 , 并且相当不完整。例如“椅子”什么都没有,而“完成”的意义之一是在主题“美式足球”中
    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"/>

  • 问题:是否有提供 的公共(public) Wordnet 查询 API 或数据库?词汇文件信息?

    最佳答案

    使用 Python NLTK 接口(interface):

    from nltk.corpus import wordnet as wn

    for synset in wn.synsets('can'):
    print synset.lexname

    关于sparql - 如何在 Wordnet 中找到 "lexical file"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6681348/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com