MaltParser (Projective)
- very similar to shift-reduce parsing
- greedy choice of attachments/actions guided by good machine learning classifiers
MaltParser - Actions
- SHIFT
- RIGHT_ARC
- LEFT_ARC
- REDUCE - optional
MaltParser - Example
given input sentence, step through the parsing steps:
book me the morning flight
|
Step |
Stack |
Word List |
Action |
Relation Added |
|---|---|---|---|---|
|
0 |
|
|
SHIFT | |
|
1 |
|
|
SHIFT | |
|
2 |
|
|
RIGHT_ARC |
|
|
3 |
|
|
SHIFT | |
|
4 |
|
|
SHIFT | |
|
5 |
|
|
SHIFT | |
|
6 |
|
|
LEFT_ARC |
|
|
7 |
|
|
LEFT_ARC |
|
|
8 |
|
|
RIGHT_ARC |
|
|
9 |
|
|
RIGHT_ARC |
|
|
10 |
|
|
done |