Future Idea: Letting Current Anaphor be a part of the pattern
Closed this issue · 4 comments
We should try and let the anaphor we're resolving be a part of the patterns people want to detect. Before look ahead this pattern can have the anaphor only at the end but even that might help.
@ftyers To Implement this I'll be putting the current anaphor with a special tag, say , which people can mention in their patterns to match with the current anaphor as well.
This would help in detecting patterns where the anaphor is a part of the pattern, i.e. gets a negative score.
Modification to arx:
In def-cats
<def-cat n="anaphor">
<cat-item has-tags="anaphor"/>
</def-cat>
<def-cat n="cop">
<cat-item has-tags="cop"/>
</def-cat>
<markable n="Cop"> <!-- Noun, CopulaVerb, Anaphor - in this order, would mean that the noun can't be its antecedent -->
<pattern>
<pattern-item n="nom"/>
<pattern-item n="cop"/>
<pattern-item n="anaphor"/>
</pattern>
<score n="-5"/>
</markable>
Now all I need to do is modify the code such that an extra LU gets added in the context at the end with the tag
Completed in 00fb153
Testing done as well. Closing!