Grammar Writing: Week 8: Difference between revisions

From English Grammar
Jump to navigation Jump to search
 
(6 intermediate revisions by one other user not shown)
Line 46: Line 46:
  <!-- verbphrase_rule2 => a verb phrase with three children: a verb word + a noun word + another noun word. -->
  <!-- verbphrase_rule2 => a verb phrase with three children: a verb word + a noun word + another noun word. -->


<span style="color: blue>Better solution:</span>
sentence_rule      => a sentence phrase with two children: a noun word (nominative) + a verbal sign (finite).
verbphrase_rule    => a verb phrase with two children: a verb word (finite) + a noun word (accusative).


<span style="color: blue>Task 4:</span>
<span style="color: blue>Task 4:</span>
Line 100: Line 105:




== Grammar 3 (Politics) ==
== HOMEWORK: Grammar 3 (Politics) ==




<span style="color: blue>Task 1:</span>
<span style="color: blue>Task 1:</span>
  Based on today's news [http://www.faz.net/aktuell/politik/inland/csu-horst-seehofer-geht-markus-soeder-soll-ministerpraesident-werden-15323538.html], add the following German entries to your lexicon: "soeder", "seehofer", "beerbt", "ihn", "beerben", "kommt", "bleibt".
  Based on today's news [http://www.faz.net/aktuell/politik/inland/csu-horst-seehofer-geht-markus-soeder-soll-ministerpraesident-werden-15323538.html], add the following German entries to your lexicon: "soeder", "seehofer", "beerbt", "strahlt", "ihn", "beerben", "kommt", "bleibt".


<span style="color: blue>Task 2:</span>
<span style="color: blue>Task 2:</span>
  Make use of the COMPS attribute, and write two grammar rules such that the following phrases are correctly recognized: "soeder beerbt seehofer", "soeder beerbt ihn", "soeder bleibt", "soeder kommt". (The verbs need so specify the types of objects they typically combine with.)
  Make use of the COMPS attribute, and write two grammar rules such that the following phrases are correctly recognized: "soeder beerbt seehofer", "soeder beerbt ihn", "soeder strahlt", "soeder bleibt", "soeder kommt". (The verbs need so specify the types of objects they typically combine with.)


The following phrases must '''not''' be recognized: "soeder bleibt ihn", "ihn kommt", "soeder beerben seehofer".
The following phrases must '''not''' be recognized: "soeder strahlt ihn", "soeder bleibt ihn", "ihn kommt", "soeder beerben seehofer".


<span style="color: blue>Task 3:</span>
<span style="color: blue>Task 3:</span>
  Add new lexicon entries and a ditransitive rule so as to recognize the phrase "soeder macht merkel probleme". Note that a ditransitive verb and an appropriate additional rule is needed.
  Add new lexicon entries and a ditransitive rule so as to recognize the phrase "soeder macht merkel probleme". Note that a ditransitive verb and an appropriate additional rule is needed.
<span style="color: blue>Task 4:</span>
Add a new rule for noun phrases: "der minister macht ihr probleme".






== Grammar 4 (Moving the COMPS Feature from Sign to Syntax) ==


<nowiki>
type_hierarchy
bot
  sign  syntax:syntax
      phrase  dtrs:list 
      word 
  list 
      ne_list  tl:list  hd:bot 
      e_list 
  vform 
      fin 
      nonfin 
        prp 
        pfp 
        base 
  pos 
      verb  vform:vform 
      noun  case:case 
      s 
      prep 
  syntax  head:pos  comps:list 
  case 
      acc 
      nom 
.
</nowiki>




Line 123: Line 163:
Navigation:  
Navigation:  
<div align="center">
<div align="center">
   [[Grammar_Writing|'''Main Page''']] &nbsp; [[Grammar_Writing:_Week_2| '''Week 2''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_3| '''Week 3''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_4| '''Week 4''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_5| '''Week 5''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_6| '''Week 6''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_7| '''Week 7''']] &nbsp; [[Grammar_Writing:_Week_8| '''Week 8''']] &nbsp;&nbsp;   
   [[Grammar_Writing|'''Main Page''']] &nbsp; [[Grammar_Writing:_Week_2| '''Week 2''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_3| '''Week 3''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_4| '''Week 4''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_5| '''Week 5''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_6| '''Week 6''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_7| '''Week 7''']] &nbsp; [[Grammar_Writing:_Week_8| '''Week 8''']] &nbsp;&nbsp;  [[Grammar_Writing:_Week_9| '''Week 9''']]
</div>
</div>

Latest revision as of 13:52, 11 December 2017

Tutorial Session (December 4th)

Grammar 1 (Case + Vform)

type_hierarchy
bot
   sign   syntax:syntax   
      phrase   dtrs:list   
      word   
   list   
      ne_list   tl:list   hd:bot   
      e_list   
   vform   
      fin   
      nonfin   
         prp   
         pfp   
         base   
   pos   
      verb   vform:vform   
      noun   case:case   
      s   
      prep   
   syntax   head:pos   
   case   
      acc   
      nom   
.



Task 1:

Add lexicon entries for "she", "her", "help", "receives", "shouts", (to) "run", they.

Task 2:

Add grammar rules so that the following two sentences are correctly recognized: "she shouts" and "she receives help". This time, "her shouts" should not be recognized by the grammar; in addition, "she run" must not be recognized by the grammar.


Solution from last week:

noun_verb_rule       => a sentence phrase with two children: a noun word + a verb word.
verbphrase_rule     => a verb phrase with two children: a verb word + a noun word.
noun_verbphrase_rule => a sentence phrase with two children: a noun word + a verb phrase.


Better solution:

sentence_rule       => a sentence phrase with two children: a noun word (nominative) + a verbal sign (finite).
verbphrase_rule     => a verb phrase with two children: a verb word (finite) + a noun word (accusative).

Task 4:

Delete the three rules and reimplement them such that only two rules are needed. The same set of phrases should be correctly recognized and/or rejected.


Task 5:

Add "gives" and "support" to the lexicon and a rule to analyze the sentence: "she gives her support".


Task 6:

Add "the" to the lexicon and a rule to analyze the phrase: "the help". "She receives the help." should be correctly recognized by the grammar.



Grammar 2 (Complements)

type_hierarchy
bot
   sign   syntax:syntax   comps:list  
      phrase   dtrs:list   
      word   
   list   
      ne_list   tl:list   hd:bot   
      e_list   
   vform   
      fin   
      nonfin   
         prp   
         pfp   
         base   
   pos   
      verb   vform:vform   
      noun   case:case   
      s   
      prep   
   syntax   head:pos   
   case   
      acc   
      nom   
.


Task:

Add the same lexicon entries and rules. This time, "she receives", "she shouts help" should not be recognized by the grammar!



HOMEWORK: Grammar 3 (Politics)

Task 1:

Based on today's news [1], add the following German entries to your lexicon: "soeder", "seehofer", "beerbt", "strahlt", "ihn", "beerben", "kommt", "bleibt".

Task 2:

Make use of the COMPS attribute, and write two grammar rules such that the following phrases are correctly recognized: "soeder beerbt seehofer", "soeder beerbt ihn", "soeder strahlt", "soeder bleibt", "soeder kommt". (The verbs need so specify the types of objects they typically combine with.)

The following phrases must not be recognized: "soeder strahlt ihn", "soeder bleibt ihn", "ihn kommt", "soeder beerben seehofer".

Task 3:

Add new lexicon entries and a ditransitive rule so as to recognize the phrase "soeder macht merkel probleme". Note that a ditransitive verb and an appropriate additional rule is needed.

Task 4:

Add a new rule for noun phrases: "der minister macht ihr probleme".





Grammar 4 (Moving the COMPS Feature from Sign to Syntax)

type_hierarchy
bot
   sign   syntax:syntax
      phrase   dtrs:list   
      word   
   list   
      ne_list   tl:list   hd:bot   
      e_list   
   vform   
      fin   
      nonfin   
         prp   
         pfp   
         base   
   pos   
      verb   vform:vform   
      noun   case:case   
      s   
      prep   
   syntax   head:pos   comps:list   
   case   
      acc   
      nom   
.




Navigation:

 Main Page    Week 2     Week 3     Week 4     Week 5     Week 6     Week 7    Week 8      Week 9