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)))
Log in to post a comment.