截至 2021 年 3 月 11 日,Imagenet 已公开声明:
新网站更简单;我们删除了相关或过时的函数,以专注于核心用例——使用户能够下载数据,包括完整的 ImageNet 数据集和 ImageNet 大规模视觉识别挑战赛 (ILSVRC)。
Source
这意味着任何使用所谓的“官方文档”来解析和搜索 imagenet 的服务现在都需要使用nltk(与上面的海报答案相反)。
只有在我的服务开始返回所有 404 后,我提交了帮助台票证后才确认这一点,如下所示:
Begin forwarded message:
From: ImageNet Support <imagenet.help.desk@gmail.com>
Subject: Re: wordnet api
Date: March 16, 2021 at 11:21:37 AM EDT
To: Aaron Soellinger <me@me>
Unfortunately we have updated the website and do not maintain these APIs any more. Any URLs from the old website may become invalid if they are not on the new website. For your use case, a workaround may be to query the WordNet hierarchy, e.g., by using the WordNet NLTK interface.
On Tue, Mar 16, 2021 at 11:18 AM Aaron Soellinger <me@me> wrote:
below:
ss = 'http://www.image-net.org/synset?wnid={wnid}'
hyp = 'http://www.image-net.org/api/text/wordnet.structure.hyponym?wnid={wnid}'
word = 'http://www.image-net.org/api/text/wordnet.synset.getwords?wnid={wnid}'
mapg = 'http://www.image-net.org/api/text/imagenet.synset.geturls.getmapping?wnid={wnid}'
urlf = 'http://www.image-net.org/api/text/imagenet.synset.geturls?wnid={wnid}'
On Mar 16, 2021, at 11:17 AM, ImageNet Support <imagenet.help.desk@gmail.com> wrote:
Hello Aaron,
What is the URL of the API?
Best,
On Tue, Mar 16, 2021 at 8:15 AM Aaron Soellinger <me> wrote:
Hi,
I was using the wordnet api found at image-net.org/api .. I have noticed that it no longer works. All my links return 404s.
Can you help?
—aaron
所以,是的,nltk 是。