Skip to content
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

DeprecationWarning: using a non-integer number instead of an integer #26

Closed
5j9 opened this issue Jul 12, 2014 · 1 comment
Closed

DeprecationWarning: using a non-integer number instead of an integer #26

5j9 opened this issue Jul 12, 2014 · 1 comment

Comments

@5j9
Copy link

5j9 commented Jul 12, 2014

I'm receiving these warning while using langid:

Warning (from warnings module):
  File "C:\Python34\lib\site-packages\langid\langid.py", line 167
    nb_ptc = np.array(nb_ptc).reshape(len(nb_ptc)/len(nb_pc), len(nb_pc))
DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future

Warning (from warnings module):
  File "C:\Python34\lib\site-packages\langid\langid.py", line 243
    arr = np.zeros((self.nb_numfeats,), dtype='uint32')
DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future

I'm using python 3.4.1, numpy 1.8.1, and langid 1.1.4dev (python 3 branch)

@saffsd
Copy link
Owner

saffsd commented Mar 8, 2016

Wow, sorry this took me so incredibly long to address. This is the same issue as #46 and is also fixed by 2acad6b. Better late than never I hope.

@saffsd saffsd closed this as completed Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants