You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Many categories that should have a non-zero hyponym count (from the hyponymCountMap
of the CategoryGraph class) instead have negative hyponym counts
What version of the product are you using? On what operating system?
JWPL-0.9.1
Please provide any additional information below.
I noticed the above problem when the Intrinsic Information Content (IIC) of many categories
returned the value -1. When I investigated the CategroyGraph class, I noticed that
the IIC of these categories is -1 because their hyponym count (returned by the hyponymCountMap)
is < 0. Surely this can't be right. The hyponym count of a node cannot be negative.
I later found that when calculating the hyponym counts in the createHyponymCountMap
function, some of the local variables were declared as int (sumChildHyponyms, childHyponymCount
and currNodeHyponymCount). At some point in the calculation, these variables exceed
the range of int (2,147,483,647) and the value gets flipped to negative (-2,147,483,647).
I was able to solve this problem by changing the types of these variables to long.
I suggest perhaps you do the same in the distribution version.
Reported by yayasadiq on 2012-07-19 14:32:18
The text was updated successfully, but these errors were encountered:
Originally reported on Google Code with ID 100
Reported by
yayasadiq
on 2012-07-19 14:32:18The text was updated successfully, but these errors were encountered: