Context Free Grammar (CFG) Parser in Go

2019-04-24 10:14发布

I am looking for a Go library providing CFG parsing (preferably not in Chomsky Normal Form). Has anybody heard of anything, or should I write it ? :)

标签: parsing nlp go
2条回答
孤傲高冷的网名
2楼-- · 2019-04-24 10:48

Do you know about goyacc?. Although it's not a library, but a code generator. Anyway it supports CFGs and it's IMO a pretty standard way to handle such tasks. (?)

查看更多
时光不老,我们不散
3楼-- · 2019-04-24 11:00

I cannot help you specifically with CFGs, but the Go Dashboard is a good central list of Go libraries.

Looking over it for parsers, two look helpful at first glace:

  • go-parse, modeled after Haskell's Parsec, and
  • peg for Parsing Expression Grammars.
查看更多
登录 后发表回答