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
@ralyodio@shamoons i know this is old but i had the same question so i just dug around, the calculation is tokens.length > 0 ? score / tokens.length : 0,
so in the example { score: 1, comparative: 0.1111111111111111, calculation: [ { allergic: -2 }, { love: 3 } ], tokens: [ 'i', 'love', 'cats', 'but', 'i', 'am', 'allergic', 'to', 'them' ], words: [ 'allergic', 'love' ], positive: [ 'love' ], negative: [ 'allergic' ] }
since our net score is 1 and we have 9 tokens the comparative score is 1/9 (0.11111..)
or is it -5 and 5?
I always get less than 1 or -1.
The text was updated successfully, but these errors were encountered: