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:23] – adding %% to code in [Exercise 3] aamoakuhcqp:practice-complex-queries-solutions [2024/07/08 16:03] (current) – add %% to code in [Exercise 6] aamoakuh
Line 11: Line 11:
 ==== Exercise 2 ====  ==== Exercise 2 ==== 
  
-''[word="going" %c][hw="to"][class="VERB"]'' (1583 matches)+''%%[word="going" %c][hw="to"][class="VERB"]%%'' (1583 matches)
  
 ==== Exercise 3 ====  ==== Exercise 3 ==== 
Line 22: Line 22:
  
 This query should return **61 matches** in the BNC-BABY: This query should return **61 matches** in the BNC-BABY:
-''[hw="heart"] :: match.text_genre="W:ac:medicine"'' +''%%[hw="heart"] :: match.text_genre="W:ac:medicine"%%'' 
  
 **Which common constructions can be seen in the matches?**  **Which common constructions can be seen in the matches?** 
Line 34: Line 34:
 Depending on whether you included the past participles of non-lexical verbs or not, you might end up with either one of the constructions.  Depending on whether you included the past participles of non-lexical verbs or not, you might end up with either one of the constructions. 
  
-''[hw="have"][pos="VVN"]'' (22699 matches)+''%%[hw="have"][pos="VVN"]%%'' (22699 matches)
  
-''[hw="have"][pos="VVN|VHN|VBN|VDN"]'' (33527 matches) +''%%[hw="have"][pos="VVN|VHN|VBN|VDN"]%%'' (33527 matches) 
  
 To generate a frequency list of lemmas in the participle slot: ''count Last by word %c on match[1]'' To generate a frequency list of lemmas in the participle slot: ''count Last by word %c on match[1]''
  
-The frequency list of the first query: +First ten entries of the frequency list of the first query: 
  
  4541    got    4541    got  
Line 53: Line 53:
  225     told   225     told 
  
-The frequency list of the second query: +First ten entries of the frequency list of the second query: 
  
  8822    been    8822    been  
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.1720444983.txt.gz · Last modified: 2024/07/08 15:23 by aamoakuh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki