Grammar Writing: Week 8: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
Nikoschenk (talk | contribs)  (Created blank page)  | 
				Nikoschenk (talk | contribs)  No edit summary  | 
				||
| Line 1: | Line 1: | ||
= Tutorial Session (December 4th) =  | |||
== Grammar 1 (Case + Vform) ==  | |||
 <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     | |||
   case     | |||
      acc     | |||
      nom     | |||
.  | |||
</nowiki>  | |||
<span style="color: blue>Task 1:</span>  | |||
 Add lexicon entries for "she", "her", "help", "receives", "shouts", (to) "run", they.  | |||
<span style="color: blue>Task 2:</span>  | |||
 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.  | |||
<span style="color: blue>Solution from last week:</span>  | |||
 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.  | |||
 <!-- verbphrase_rule2 => a verb phrase with three children: a verb word + a noun word + another noun word. -->  | |||
<span style="color: blue>Task 4:</span>  | |||
 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.  | |||
<span style="color: blue>Task 5:</span>  | |||
 Add "gives" and "support" to the lexicon and a rule to analyze the sentence: "she gives her support".  | |||
== Grammar 2 (Complements) ==  | |||
 <nowiki>  | |||
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     | |||
.  | |||
</nowiki>  | |||
<span style="color: blue>Task:</span>  | |||
 Add the same lexicon entries and rules. This time, "she receives", "she shouts help" should not be recognized by the grammar!  | |||
<br>  | |||
<br>  | |||
Navigation:   | |||
<div align="center">  | |||
  [[Grammar_Writing|'''Main Page''']]   [[Grammar_Writing:_Week_2| '''Week 2''']]    [[Grammar_Writing:_Week_3| '''Week 3''']]    [[Grammar_Writing:_Week_4| '''Week 4''']]    [[Grammar_Writing:_Week_5| '''Week 5''']]    [[Grammar_Writing:_Week_6| '''Week 6''']]    [[Grammar_Writing:_Week_7| '''Week 7''']]   [[Grammar_Writing:_Week_8| '''Week 8''']]       | |||
</div>  | |||
Revision as of 12:37, 4 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.
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".
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!
Navigation: