#12 Empty sense list in Disambiguator getContext()

open
nobody
None
5
2010-06-16
2010-06-16
No

I'm using the wikipedia miner toolkit 1.1. I had to add a new test on a conditional of the getContext() method in the Disambiguator class, due to "NoSuchElementException" problems. Take a look at the last "if" of the method and change it like this:

if (anchor.getSenses().size() == 1 || (anchor.getSenses().size() > 0 && anchor.getSenses().first().getProbability() >= (1-minSenseProbability)))
unambigAnchors.add(anchor) ;

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks