Week5-8Alternative Parsing Formalisms

本文介绍了几种形式语言理论中的文法模型,包括树形替换文法(TSG)、树形邻接文法(TAG)及组合范畴语法(CCG),并探讨了它们在表达力上的差异以及如何处理交叉依赖等复杂语言现象。

Mildly Context-sensitive grammars

-Tree substitution grammars(TSG)
- Terminals generate entire tree fragments
- TSG and CFG are formally equivalent
- Tree adjoining grammar(TAG)
- Combinatory categorical grammar(CCG)

TAG

  • Like TSG but allow adjunction

Adjunction: suppose we have a parse tree with verb phrase embedded in it. Adjunction allows you to create a new node and to put it inside the tree and push the existing sub-tree further down. So we will have a new verb phrase that have the original verb phrase as its descendents.

  • It can generate languages like anbncn or ww(cross-serial dependencies)(repeated same strings):
    • Mary gave a book and a magazine to Chen and Mike, respectively. (cannot be generated by CFG but can by TAG)
  • expressive power
    • TAG is formally more powerful than CFG
    • TAG is less powerful than CSG

CCG

-Complex type
- X/Y, X\Y
- Take an argument of type Y, and return an object of type X.
- X/Y means that Y should appear on the right
- X\Y means that Y should appear on the left

这里写图片描述

  • Expressive power
    • CCGs can generate the language anbncndn, n>0

Semantic Parsing

  • Associate a semantic expression with each node

这里写图片描述

One of the hottest areas in the next few years.

这里写图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值