Skip to content

Commit

Permalink
remove the 1-4 to 0-4 conversion in import_eventserver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
whhone committed Mar 24, 2015
1 parent 08d7aaf commit e6a398e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/import_eventserver.py
Expand Up @@ -18,8 +18,7 @@ def import_events(client, file):
entity_id=data[0],
properties= {
"sentence" : str(data[2]),
# convert the scale from 1~4 to 0~4
"sentiment" : (float(data[3]) - 1) * 4 / 3
"sentiment" : float(data[3])
}
)
count += 1
Expand Down

0 comments on commit e6a398e

Please sign in to comment.