Cover image
Try Now
2016-09-02

Python McParseface:在Python中以编程方式致电Parsey McParseface的一种方式

3 years

Works with Finder

6

Github Watches

8

Github Forks

33

Github Stars

What this project does

This project lets you use Google's SyntaxNet (AKA Parsey McParseface) from python code and without hours of installing and training models.

How to run the parser

import pyparseface

parsed_sentence_dict = pyparseface.parse_sentence(
  "Maybe there was once a human who looked like you, and somewhere along the "
  "line you killed him and took his place. And your superiors don't know.")
print("OrderedDict: %s\n" % parsed_sentence_dict)
pyparseface.pretty_print_dict(parsed_sentence_dict)

Output

OrderedDict: OrderedDict([(u'was VBD ROOT', OrderedDict([(u'Maybe RB advmod', OrderedDict()), (u'there EX expl', OrderedDict()), (u'once RB advmod', OrderedDict()), (u'human NN nsubj', OrderedDict([(u'a DT det', OrderedDict()), (u'looked VBD rcmod', OrderedDict([(u'who WP nsubj', OrderedDict()), (u'like IN prep', OrderedDict([(u'you PRP pobj', OrderedDict())]))]))])), (u', , punct', OrderedDict()), (u'and CC cc', OrderedDict()), (u'killed VBD conj', OrderedDict([(u'somewhere RB advmod', OrderedDict([(u'along IN prep', OrderedDict([(u'line NN pobj', OrderedDict([(u'the DT det', OrderedDict())]))]))])), (u'you PRP nsubj', OrderedDict()), (u'him PRP dobj', OrderedDict()), (u'and CC cc', OrderedDict()), (u'took VBD conj', OrderedDict([(u'place. NN dobj', OrderedDict([(u'his PRP$ poss', OrderedDict())]))])), (u'And CC cc', OrderedDict()), (u'know VB conj', OrderedDict([(u'superiors NNS nsubj', OrderedDict([(u'your PRP$ poss', OrderedDict())])), (u'do VBP aux', OrderedDict()), (u"n't RB neg", OrderedDict())]))])), (u'. . punct', OrderedDict())]))])

was VBD ROOT
 +-- Maybe RB advmod
 +-- there EX expl
 +-- once RB advmod
 +-- human NN nsubj
 |   +-- a DT det
 |   +-- looked VBD rcmod
 |       +-- who WP nsubj
 |       +-- like IN prep
 |           +-- you PRP pobj
 +-- , , punct
 +-- and CC cc
 +-- killed VBD conj
 |   +-- somewhere RB advmod
 |   |   +-- along IN prep
 |   |       +-- line NN pobj
 |   |           +-- the DT det
 |   +-- you PRP nsubj
 |   +-- him PRP dobj
 |   +-- and CC cc
 |   +-- took VBD conj
 |   |   +-- place. NN dobj
 |   |       +-- his PRP$ poss
 |   +-- And CC cc
 |   +-- know VB conj
 |       +-- superiors NNS nsubj
 |       |   +-- your PRP$ poss
 |       +-- do VBP aux
 |       +-- n't RB neg
 +-- . . punct

Author

Most of the hard stuff was written by Google. Ben Plowman made it slightly easier to get up and running.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • chongdashu
  • 使用模型上下文协议(MCP),启用Cursor,Windsurf和Claude Desktop等AI助手客户,以通过自然语言控制虚幻引擎。

    Reviews

    1 (1)
    Avatar
    user_9UI7zfn8
    2025-04-17

    I've been using python-mcparseface for a while now and I must say it's a game-changer for parsing tasks. Plowman has done a fantastic job creating this tool. It’s intuitive, efficient, and integrates seamlessly with my existing Python projects. For anyone looking for a reliable parsing library, check it out on GitHub!