Efficient Context-Free Grammar parser, preferably Python-friendly

后端 未结 8 460
心在旅途
心在旅途 2020-12-24 03:08

I am in need of parsing a small subset of English for one of my project, described as a context-free grammar with (1-level) feature structures (example) and I need to do it

8条回答
  •  死守一世寂寞
    2020-12-24 03:30

    I would recommend using bitpar, a very efficient PCFG parser written in C++. I've written a shell-based Python wrapper for it, see https://github.com/andreasvc/eodop/blob/master/bitpar.py

提交回复
热议问题