dkpro / dkpro-wsd

DKPro WSD: A Java framework for word sense disambiguation
https://dkpro.github.io/dkpro-wsd
20 stars 10 forks source link

Make getBestSense() work with negative scores #78

Closed bheinzerling closed 8 years ago

bheinzerling commented 8 years ago

getBestSense() returns null if all "confidence" scores are negative. I ran into this issue when working with a system that outputs scores from -inf to inf and it took a while to track down the cause of the null pointer exceptions.

logological commented 8 years ago

Thanks; seems like a reasonable fix.