-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python3 branch does not work with python 3(.5) Fix is here #46
Comments
Hi remibolcom, thanks for reporting the issue and sorry it has taken me so long to address it. I (strangely) don't seem to be able able to reproduce the issue on either the |
FYI, I just got this error using the conda install.
Results in:
|
Hi @kellymarchisio , This is because in python3, dividing integers produces a float. The fix is to change line 163 from nb_numfeats = len(nb_ptc) / len(nb_pc) to nb_numfeats = int(len(nb_ptc) / len(nb_pc)) and to change line 167 to this: nb_ptc = np.array(nb_ptc).reshape(nb_numfeats, len(nb_pc)) |
Hi Saffsd,
langid fails on line 167 of langid.py with the very example provided on the front page.
This is because in python3, dividing integers produces a float. The fix is to change line 163 from
to
and to change line 167 to this:
This fix should be easy to make.
Thanks.
The text was updated successfully, but these errors were encountered: