Skip to content

Commit

Permalink
Find fronted 'said' ccomps, with a few negative detections to avoid o…
Browse files Browse the repository at this point in the history
…ther likely tree structures which are similar but aren't actually fronted ccomp - see comments
  • Loading branch information
AngledLuffa committed Apr 18, 2024
1 parent c5ba427 commit a76a854
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -575,7 +575,14 @@ private UniversalEnglishGrammaticalRelations() {}
"@NP < JJ|NN|NNS < (SBAR=target [ !<(S < (VP < TO )) | !$-- NP|NN|NNP|NNS ] )",
// New ones to pick up some more "say" patterns (2019); avoid S-ADV descendants
"VP < (/^V/ < " + sayVerbRegex + ") < (S|S-CLF|S-TTL|SQ=target <+(S) (VP < /^VB[DZP]$/))",
"@S < /^S-TPC/=target < VP"
"@S < /^S-TPC/=target < VP",
// detect fronted VPs, eg
// "not finding this ccomp is bad, he said"
// eliminate VP !< SBAR to avoid detecting
// "he was debugging and (VP saying (SBAR he wanted to find the ccomp))"
// eliminate S !< (VP < (/^VB[GN]/ !$-- /^V/)) to avoid detecting
// (S (NP Rick Lynch) (S (VP (VBG referring to ...))) (VP says ...))
"S < (S=target $++ (VP < (/^V/ < " + sayVerbRegex + ") !< SBAR) !< (VP < (/^VB[GN]/ !$-- /^V/)))"
);


Expand Down

0 comments on commit a76a854

Please sign in to comment.