可访问英语词典(包括单词定义)的Python模块 [英] Python module with access to english dictionaries including definitions of words

查看:131
本文介绍了可访问英语词典(包括单词定义)的Python模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个python模块,该模块可以帮助我从英语词典中获取一个单词的定义.

I am looking for a python module that helps me get the definition(s) from an english dictionary for a word.

当然还有enchant,它可以帮助我检查单词是否存在于英语中,但是它没有提供它们的定义(至少我在文档中看不到类似的内容)

There is of course enchant, which helps me check if the word exists in the English language, but it does not provide definitions of them (at least I don't see anything like that in the docs)

还有WordNet,可通过NLTK访问.它具有定义,甚至包括例句,但WordNet并不包含所有英语单词.诸如如何",我",您",应该",可能"等常见词不属于WordNet.

There is also WordNet, which is accessible with NLTK. It has definitions and even sample sentences, but WordNet does not contain all English words. Common words like "how", "I", "You", "should", "could"... are not part of WordNet.

是否有任何python模块可以访问完整的英语词典,包括单词的定义?

Is there any python module that gives access to a full english dictionary including definitions of words?

推荐答案

Wordnik 似乎拥有相当不错的API和漂亮的Python模块.它具有定义,例句等,因此您应该被覆盖.它还确实有一些常见的词,例如如何",应该"和可能".

Wordnik seems to have quite a nice API, and a nice-looking Python module too. It has definitions, example sentences, etc. so you should be covered. It does also have common words like "how", "should", and "could."

这篇关于可访问英语词典(包括单词定义)的Python模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆