openeventdata / UniversalPetrarch

Language-agnostic political event coding using universal dependencies
MIT License
18 stars 9 forks source link

Problem with coding source actor role and target actor #31

Open ahalterman opened 6 years ago

ahalterman commented 6 years ago

Consider the sentence The United States will remove its military from Georgia. UniversalPetrarch does not code the source actor as USAMIL (which is admittedly a hard one) but more importantly doesn't code the target actor at all:

USA --- 174

The event code is correct, though.

JingL1014 commented 6 years ago

I fixed the target actor. Now the output of this sentence is USA GEO 174. It is difficult to extract source actor as USAMIL based on current implementation, since military is part of the matched pattern " - * &MILITARY [174] # REMOVE" and current implementation doesn't allow actor text overlaps matched pattern.