Practical Grammar 7 new: Difference between revisions
No edit summary |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<font face="Arial, Helvetica, sans-serif"> | <font face="Arial, Helvetica, sans-serif"> | ||
<font size="3"> | <font size="3"> | ||
== Prepositional Phrases == | == Prepositional Phrases == | ||
Presently, xlfg cannot handle complex annotations like that of the PP. Therefore, we will simplify the rule as follows: | Presently, xlfg cannot handle complex annotations like that of the PP. Therefore, we will simplify the rule as follows: | ||
Line 36: | Line 29: | ||
<span style="color: blue>Exercise 7.1</span> | <span style="color: blue>Exercise 7.1</span> | ||
1. Open your | 1. Open Grammar-7.1<br> | ||
2. | 2. Add the two rules above to your grammar.<br> | ||
3. Also add a correctly annotated rule VP -> V DP PP.<br> | |||
2. Make sure that in all your VP rules that have a PP on the right the annotation on the PP is: (↑OBL) = ↓n.<br> | |||
3. Add the prepositions ''to'' on ''on'' to your lexicon as follows: | 3. Add the prepositions ''to'' on ''on'' to your lexicon as follows: | ||
to P | to P | ||
Line 46: | Line 41: | ||
[PRED: 'on<OBJ>', | [PRED: 'on<OBJ>', | ||
PCASE: OBL_LOC] | PCASE: OBL_LOC] | ||
4. Add the following test items: | 4. Add the following test items: | ||
a. Oscar donated clothes to charity | a. Oscar donated clothes to charity | ||
Line 61: | Line 57: | ||
4. The problem is easy to fix with the same technique that we used to enforce subject-verb agreement.<br> | 4. The problem is easy to fix with the same technique that we used to enforce subject-verb agreement.<br> | ||
5. Do so and parse! | 5. Do so and parse! | ||
<br> | <br> | ||
<br> | <br> | ||
<font face="Arial, Helvetica, sans-serif"> | |||
<font size="2"> | |||
<div align="center"> | <div align="center"> | ||
[[Practical_Grammar |'''Main page''']] [[Practical_Grammar_2| '''Week 2''']] [[Practical_Grammar_3| '''Week 3''']] [[Practical_Grammar_4| '''Week 4''']] [[Practical_Grammar_5| '''Week 5''']] [[Practical_Grammar_6| '''Week 6''']] '''Week 7''' [[Practical_Grammar_8| '''Week 8''']] [[ | [[Practical_Grammar |'''Main page''']] [[Practical_Grammar_2|'''Week 2''']] [[Practical_Grammar_3|'''Week 3''']] [[Practical_Grammar_4|'''Week 4''']] [[Practical_Grammar_5|'''Week 5''']] [[Practical_Grammar_6|'''Week 6''']] '''Week 7''' [[Practical_Grammar_8|'''Week 8''']] [[Practical_Grammar_9|'''Week 9''']] | ||
</div> | </div> |
Latest revision as of 04:59, 25 July 2025
Prepositional Phrases
Presently, xlfg cannot handle complex annotations like that of the PP. Therefore, we will simplify the rule as follows:
2. VP → V PP ↑=↓ (↑OBL) = ↓
This means that all PPs that combine with verbs bear the grammatical function OBL(IQUE).
(2) translates into xlfg as follows:
3. VP → V PP 2. { 3. ↑=↓1; 4. (↑OBL) = ↓2; 5. }
Add the following rule for PPs:
6. PP → P DP 7. { 8. ↑=↓1; 9. (↑OBJ) =↓2; 10. }
Exercise 7.1
1. Open Grammar-7.1
2. Add the two rules above to your grammar.
3. Also add a correctly annotated rule VP -> V DP PP.
2. Make sure that in all your VP rules that have a PP on the right the annotation on the PP is: (↑OBL) = ↓n.
3. Add the prepositions to on on to your lexicon as follows:
to P [PRED: 'to<OBJ>', PCASE: OBL_REC]
on P [PRED: 'on<OBJ>', PCASE: OBL_LOC]
4. Add the following test items:
a. Oscar donated clothes to charity b. Robin put food on the table
5. Parse.
Exercise 7.2
1. Add the following test items:
a. *Oscar donated clothes on charity b. *Robin put food to the table
2. Parse!
3. The grammar does not return the intended result. What is the problem?
4. The problem is easy to fix with the same technique that we used to enforce subject-verb agreement.
5. Do so and parse!