User Tools

Site Tools


cqp:practice-complex-queries-solutions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cqp:practice-complex-queries-solutions [2024/07/08 15:26] – add %% to code in [Exercise 5] & change phrasing aamoakuhcqp:practice-complex-queries-solutions [2024/07/08 16:03] (current) – add %% to code in [Exercise 6] aamoakuh
Line 70: Line 70:
 This query may have to be adjusted gradually, these are possible ways to start out:  This query may have to be adjusted gradually, these are possible ways to start out: 
  
-''[hw="drive"][pos="PNP|NP0"]'' (92 matches)+''%%[hw="drive"][pos="PNP|NP0"]%%'' (92 matches)
  
-''[hw="drive"][class="SUBST"][class="ADJ"]'' (53 matches)+''%%[hw="drive"][class="SUBST"][class="ADJ"]%%'' (53 matches)
  
  
 The previous queries match too many sentences that aren’t instantiations of the constructions. This is a possible way to narrow it down to people in the noun slot. Note that ''PNP'' is the pos-tag for personal pronouns and ''NP0'' is the pos-tag for proper nouns, like //Michael// or //NHS//:  The previous queries match too many sentences that aren’t instantiations of the constructions. This is a possible way to narrow it down to people in the noun slot. Note that ''PNP'' is the pos-tag for personal pronouns and ''NP0'' is the pos-tag for proper nouns, like //Michael// or //NHS//: 
  
-''[hw="drive"][pos="PNP|NP0"][class="ADJ"]'' (13 matches)+''%%[hw="drive"][pos="PNP|NP0"][class="ADJ"]%%'' (13 matches)
  
 **Which of the construction’s slots remain the same, which are variable?** **Which of the construction’s slots remain the same, which are variable?**
Line 89: Line 89:
 ==== Exercise 7 ====  ==== Exercise 7 ==== 
  
-Query for //venomous//: ''[hw="venomous"][class="SUBST"]'' (91 matches)+Query for //venomous//: ''%%[hw="venomous"][class="SUBST"]%%'' (91 matches)
  
-Frequency list for //venomous//: +First ten entries of the frequency list for //venomous//: 
  
  count Last by hw on match[1]  count Last by hw on match[1]
Line 106: Line 106:
  2 glance    2 glance  
  
-Query and frequency list for //toxic// (956 matches):+Query and first ten entries of the frequency list for //toxic// (956 matches):
  
  [hw="toxic"][class="SUBST"  [hw="toxic"][class="SUBST"
Line 121: Line 121:
  15 emission    15 emission  
  
-Query and frequency list for //poisonous// (290 matches):+Query and first ten entries of the frequency list for //poisonous// (290 matches):
  
  [hw="poisonous"][class="SUBST"  [hw="poisonous"][class="SUBST"
cqp/practice-complex-queries-solutions.1720445180.txt.gz · Last modified: 2024/07/08 15:26 by aamoakuh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki