|
Post by Mike Maune on Sept 14, 2018 8:09:10 GMT -5
I have a corpus that I want to search for relative clauses starting with "who" or "that." When I run that search, sometimes I get some relative clauses that have the "who|that" clause embedded within them, but they themselves start with "which." So I would like to chop off or exclude the "which" clauses. Here's my basic query:
<mood feature="relative-clause"/> containing [word="who|that" & word!="which"]
This does not exclude the "which" clauses however. Why? Where is my syntax wrong? Is it a bug?
|
|
mick
New Member
Posts: 2
|
Post by mick on Sept 14, 2018 8:51:34 GMT -5
Hi Michael,
The term: [word="who|that" & word!="which"] will match any word which is 'who' or 'that' as long as the word is not 'which'. Does't make any sense, like saying in a shop, give me a coffee which is not a banana. You could search for:
<mood feature="relative-clause"> [word="who|that" "]
where the first segment specification DOES NOT end with /, meaning it matches THE BEGINNING OF a segment (so, this matches who or that at the front of a relative clause). However, the only segment returned is the token who or what. As this is not a segment in any defined layer (just a token in the original text), it is not clickable to go and see it.
However, if you try
<mood feature="relative-clause"> <mood text="who|that"/>
Then you will be given a list of found who or that as segments in the mood layer.
Mick
|
|
|
Post by Mike Maune on Sept 14, 2018 9:00:29 GMT -5
Okay, so say I wanted to reverse it. I want "which" clauses but exclude "who" or "that." And some of the "which" clauses don't have "which" as the very first word--they might have it second, like "in which something happens..." This was something I was trying to avoid because I saw some relative clauses like that--where the head was not necessarily the first word.
|
|