Sometimes getting NaN back as Score with CompareTerms

11 views
Skip to first unread message

Michael Ruepp

unread,
Aug 6, 2015, 9:31:21 AM8/6/15
to Semantic Vectors
Hi,

I sometimes getting "NaN" return when using compareterms with two strings. What does that mean?

Thanks,

Michael

Dominic

unread,
Aug 6, 2015, 12:39:14 PM8/6/15
to Semantic Vectors
It probably means that one of the vectors wasn't found. Please reply with the console output, that might lead to a more detailed explanation.

-Dominic

Michael Ruepp

unread,
Aug 7, 2015, 6:42:32 AM8/7/15
to Semantic Vectors
Hi Dominic,

this is programatically. However, what is NaN? I thought, I get double back from the public double runCompareTerms(FlagConfig flagConfig) function in CompareTerms?

What double is NaN? How can I filter it?

My Collections sorter suddenly quits when I feed them results with NaN.

Thanks,

Mc

Michael Ruepp

unread,
Aug 7, 2015, 6:46:49 AM8/7/15
to Semantic Vectors
OK I got it, i will check against Double.NaN and exclude it from the result.


On Thursday, August 6, 2015 at 3:31:21 PM UTC+2, Michael Ruepp wrote:
Reply all
Reply to author
Forward
0 new messages