执行 nltk.download() 时如何获取特定版本的 Wordnet

Vis*_*agi 5 python nltk wordnet

我有一个域映射文件,用于 Wordnet 同义词集,它由偏移量链接,来自 :-链接

这对于不同的 Wordnet 版本和其他显着差异有两种类型的数据库。自述文件说

- "wn-domains-3.2-20070223" contains the mapping between Princeton WordNet 2.0 synsets and their corresponding domains.
Run Code Online (Sandbox Code Playgroud)

我在 linux 机器上使用 python3.4 和 Wordnet 版本 3。我似乎找不到支持 Wordnet 3 的任何其他版本的域文件,所以我需要将 Wordnet 降级到版本 2。我该怎么做?,这可能吗?

ale*_*xis 1

您应该将资源迁移到当前版本的 Wordnet,而不是尝试回滚 nltk——当然,如果其他项目依赖项不妨碍的话。Wordnet网站提供了可下载的“从版本 2.1 到 3.0 的感知键映射”(tgz 存档),您可以使用它来将域文件迁移到 Wordnet 3.0。Wordnet 的每个版本都包含与先前版本类似的迁移表,例如从2.0 到 2.1(显然您需要)等。