shashank-gv / hugging

0 stars 0 forks source link

SENTIMENT: Output the sentiment as a real number -1 to 1 #23

Open gjwgit opened 2 years ago

gjwgit commented 2 years ago

The aztext package outputs the sentiment between 0 and 1. with 0.5 as neutral.

Perhaps a more natural range is -1 to 1.

The SENTIMENT command should output a single number between -1 and 1 as an indication of the sentiment. Round it to just 2 decimal points.

$ ml sentiment hugging microsoft_text.txt
0.72