Skip to content

Commit 49c941a

Browse files
committed
Add a whole bunch more verbs to sayVerbRegex. gripes and complains (a previous change) both show up in PTB
1 parent bea6c4e commit 49c941a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/edu/stanford/nlp/trees/EnglishPatterns.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,10 @@ public class EnglishPatterns {
8787
/** A list of verbs which are verbs of speaking that easily take an S (as a complement or topicalized)
8888
* which is a direct speech ccomp. For example: "He concedes: ``This is a difficult market.''"
8989
* <br>
90-
* TODO: maybe sign, as in ASL? sing, kibitz ... wish?
91-
* quite a few others from the NP_V_S_INF_VERBS_REGEX:
92-
* pledge, protest, bluster, bray, cackle, call, chuckle, chortle, croak, coo, crow, drawl, drone, gasp ...
93-
* signal, bellow, bleat, blubber, boom, chirp, yammer, yap
90+
* TODO: maybe sign, as in ASL? sing ... wish?
9491
*/
9592
public static final String sayVerbRegex =
96-
"/^(?i:say|says|said|saying|(?:add|boast|chant|claim|complain|counsel|explain|inform|interject|pray|proclaim|purr|recall|remark|report|respond|scream|shout|shriek|sigh|sulk|whisper|whoop|yell|yelp)(?:s|ed|ing)?|(?:advis|announc|acknowledg|conced|conclud|decid|declar|grip|grous|inton|not|observ|propos|stat|whin|whing)(?:e|es|ed|ing)|(?:bitch|confess|screech)(?:es|ed|ing)?|(?:agree)(?:s|d|ing)?|(?:cr|repl)(?:y|ied|ies|ying)|admit|admits|admitted|admitting|hold|holds|holding|held|write|writes|writing|wrote|tell|tells|telling|told|quipped|quip|quips|quipping|think|thinks|thinking|thought)$/";
93+
"/^(?i:say|says|said|saying|(?:add|bellow|bleat|blubber|bluster|boast|boom|bray|call|chant|chirp|claim|complain|coo|counsel|croak|crow|drawl|explain|gasp|inform|interject|pray|proclaim|protest|purr|recall|remark|report|respond|scream|shout|shriek|sigh|sulk|whisper|whoop|yammer|yap|yell|yelp)(?:s|ed|ing)?|(?:advis|announc|acknowledg|cackl|chortl|chuckl|conced|conclud|decid|declar|dron|grip|grous|inton|not|observ|pledg|propos|stat|whin|whing)(?:e|es|ed|ing)|(?:bitch|confess|kibitz|kibbitz|screech)(?:es|ed|ing)?|(?:agree)(?:s|d|ing)?|(?:cr|repl)(?:y|ied|ies|ying)|admit|admits|admitted|admitting|hold|holds|holding|held|write|writes|writing|wrote|tell|tells|telling|told|quipped|quip|quips|quipping|signal|signals|signaled|signalled|signaling|signallingthink|thinks|thinking|thought)$/";
9794

9895

9996
// TODO: is there some better pattern to look for? We do not have tag information at this point

0 commit comments

Comments
 (0)