CS224N notes_chapter6_syntax grammar and dependency parsing

第六讲 syntax grammar and dependency parsing

#我是真没咋看懂这一讲

1. Syntactic Structure: Consistency and Dependency

Constituency = phrase structure grammar = context-free grammars(CFGs)
Phrase structure organizes words into nested constituents. e.g. VP->V PP
Dependency structure shows which words depend on which other words.
Ambiguity example:
Scientists study whales from space.
study from space v.s. whales from space.
A key parsing decision is how we attach various constituents.

2. Dependency Grammar

We firstly talk about dependency grammar.
Dependency syntax postulates that syntactic structure consists of relations between lexical items, normally binary asymmetric relations called dependencies.
fake ROOT.
Dependency Parsing

  • Usually
    • only one word is dependent of ROOT
    • no cycles
      This makes the dependencies a tree.
  • Whether arrows can cross. if no cross -> projective tree; otherwise non-projective tree. We could move the phrases in sentence to make a non-projective tree projective.

We can’t reconstruct sentences based on this tree without other infomation.
Method of Dependency Parsing

  • Dynamic programming
  • Graph algorithms
  • Constraint Satisfaction
  • Transition-based parsing

3. Research highlight

omit

4. Transition-based dependency parsing

  • A simple form of greedy discriminative dependency parser
  • The parser does a sequence of bottom up actions.

Arc-standard transition-based parser
Three actions: shift left-arc right-arc
Example: I ate fish

  1. [root] [I ate fish]
  2. [root I] [ate fish] -> shift
  3. [root I ate] [fish] -> shift
  4. [root I ate] A+=nsubj(ate->I) -> left-arc
  5. [root ate fish][] -> shift
  6. [root ate] -> A+=obj(ate->fish) right-arc
  7. [root] -> A+=root(ROOT->ate) right-arc
  8. finished.

How to choose action? Train a classifier use features like POS/top of stack word, etc.

Evaluation:
only arrow/ arraw with label.

5. Neural dependency parsing

omit

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值