"View requires a FeatureNode" exception in certain circumstances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RelEx |
Fix Released
|
High
|
linas |
Bug Description
I'm using GATE and if I use this command line:
<arg line="-n 4 -g --g-post -l -t -f -s"/>
<arg value="Mr. Peter Haliday, the district police commander for the area surrounding the Whitehead Detention Centre, Hong Kongs largest camp for boat people, said the victims were attacked in their sleep by 10 men."/>
I get this failure:
[java] java.lang.
[java] at relex.feature.
[java] at relex.feature.
[java] at relex.entity.
[java] at relex.MyRelatio
[java] at relex.MyRelatio
That is occurring on the "10" at index 198, which ANNIE is tagging as a DATE.
But that isn't the real cause of the exception, because a shorter sentence or only asking for a single parse does not fail (although the "10" is still being tagged as a DATE, which looks like a bug too to me but with ANNIE I guess).
So changing "-n 4" to "-n 1" lets it pass.
The real problem may be the preceding entity ("Whitehead Detention Center"), because this also works (albeit still tagging "10" as a DATE):
<arg line="-n 4 -g --g-post -l -t -f -s"/>
<arg value="Mr. Peter Haliday, the district police commander for the surrounding area, said the victims were attacked in their sleep by 10 men."/>
No fix from me at this point. I can proceed for a while with "-n 1".
Changed in relex: | |
status: | Fix Committed → Fix Released |
Ahh, no. Setting "-n 1" doesn't prevent the failure (just makes it harder to see in the output).
But it does have something to do with "Whitehead Detention Centre". These fail:
"The Whitehead Detention Centre was established in 1973."
"The Whitehead Detention Center was established in 1973."
"The Whitehead Detention Center, established in 1973, is headed by director Samuel Warehouse."
"The Whitehead Detention Center, is headed by director Samuel Warehouse."
"The Whitehead Detention Center is headed by director Samuel Warehouse."
These are OK:
"The Detention Center was established in 1973."
"The Whitehead Center is headed by director Samuel Warehouse."
"The Whitehead Center was established in 1973."
So it seems to have something to do with three word entities.