“Datamuse API的非官方Python包装。”

pytekdatamuse的Python项目详细描述


Build StatusBuild statusDocumentation StatusLicense: GPLv3OrganizationViewsPRs WelcomeGitHub pull-requestsLanguage

皮特克数据博物馆

TralahTekTralahMTralahM

文件

cli脚本提供22个子命令来使用各种功能 由API提供。在

Documentation

查看Datamuse API Docs以获取详细信息 说明。在

如何安装

# In terminal do:
$ pip install pytekdatamuse

使用

您可以使用cli脚本

^{pr2}$

从python脚本

importtekdatamuseapi=tekdatamuse.Datamuse()# wordswords=api.words(sp="early",md="d")# get synonymssyns=api.synonyms("look")# get antonymsantonyms=api.antonyms("look")# get holonymsholonyms=api.holonyms("look")# get hypernymshypernyms=api.hypernyms("look")# get hyponymshyponyms=api.hyponyms("look")# get meronymsmeronyms=api.meronyms("look")# get homophoneshomophones=api.homophones("look")# get rhymesrhymes=api.rhymes("look")# get approximate rhymesapprox_rhymes=api.approx_rhymes("look")# get popular adjectives modifying a nounnoun_modifiers=api.noun_modifiers("look")# get popular nouns modified by the  adjectiveadj_modifiers=api.adj_modifiers("look")# get word definitiondefine=api.define("hypotheses")# autocompletecompletions=api.autocomplete("boo",max=20)# followersfollowers=api.followers("early")# predecessorspredecessors=api.predecessors("early")# right_contextright_context=api.right_context("early")# left_contextleft_context=api.left_context("early")# triggerstriggers=api.triggers("early")# means_likemeans_like=api.means_like("early")# sounds_likesounds_like=api.sounds_like("early")# spelled_likespelled_like=api.spelled_like("early")

为开发者从源代码构建

$ git clone https://github.com/TralahM/pytekdatamuse.git
$cd pytekdatamuse

贡献

See the Contributing File

See the Pull Request File

支持

许可证

Read the license here

自我推销

TralahMTralahM

Blog

TralahTek

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
爪哇太阳报。安全验证器。ValidatorException:PKIX路径生成失败   java理解为什么在onDispatchTouchEvent()返回True后仍调用onClick()   java如何在资源包中使用JSF标记/如何在资源包中重写URL?   java什么是流控制异常的替代方案?   java使用Spring数据JPA/MongoDB交叉存储,一个查询可以跨越两个数据库吗?   Apache Sling/felix中的java OSGi slf4j日志记录   为什么当我们想要水平/垂直旋转矩阵时,我们要把这个项除以2?   尝试从外部网页接收JSON字符串时出现安卓 Java NullPointerException   java执行异常:从Callable调用方法时   java在jetty上以调试模式运行webapp,使用maven jetty插件在intellij中构建成功(应用程序应在调试模式下启动)   带有内存数据库的linux Java应用程序的构建时间太长   基于java的随机数单元测试算法   java类型javax。摆动JComponent无法解析   Google日历API和UI小部件Java   java tomcat没有突然和任意地响应   java无法使用jsoup在html中获取图像src   我无法让Java接受键盘输入字符串   java如何开始使用Bambol而不让部署永远继续?   java如何使用另一个类的actionPerformed方法删除一个类/组件中的按钮?   java JSON反序列化brakets{}中的一系列对象