sukrutrao / Fast-Dawid-Skene

Code for the algorithms in the paper: Vaibhav B Sinha, Sukrut Rao, Vineeth N Balasubramanian. Fast Dawid-Skene: A Fast Vote Aggregation Scheme for Sentiment Classification. KDD WISDOM 2018
https://sites.google.com/view/fast-dawid-skene
MIT License
42 stars 11 forks source link

Fix Python 3 compatibility and update pandas dependency #5

Closed sukrutrao closed 5 years ago

sukrutrao commented 5 years ago
vbsinha commented 5 years ago

print("Classes:", classes) in python 2 would print "('Classes:', [a list])" instead of "Classes:, [a list]". To make the print behave as a function and resolve this issue of additional characters like (,',) add from __future__ import print_function to algorithms.py. This would make print behave as a function in both python 2 and 3. Check the print before final commit by using --verbose.

sukrutrao commented 5 years ago

@vbsinha Updated. Please check.