CFG的定义

最近在CMU上NLP,好吧

对于见了很多年的CFG(Context-Free Grammar)发现又搞不懂是什么了

教材上写的是:

mathematical system for modeling constituent struture

百度出来的总说CFG的生成式需要右侧开头是terminal symbol可是教材和wiki都没提过

终于在stanford的一个PPT上找到了一个解释:

A context-free grammar is a notation
for describing languages.

这里的notation就是说CFG是一种表示法,就像finite automata一样的东西,感觉弄懂了点了

附上网址:

http://infolab.stanford.edu/~ullman/ialc/spr10/slides/cfl1.pdf

 

posted @ 2016-10-08 09:17  一梦轻枫  阅读(552)  评论(0编辑  收藏  举报