Skip to content

Commit

Permalink
fix build dependency error + change a new method name
Browse files Browse the repository at this point in the history
  • Loading branch information
vrasneur committed Oct 13, 2017
1 parent e144c43 commit 4a9b1d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from setuptools import setup, Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
from glob import glob
from os.path import join
import os
import sys

VERSION = '0.4.0'
VERSION = '0.4.1'

def to_bool(val):
if not val:
Expand Down Expand Up @@ -54,6 +55,7 @@ def to_bool(val):
description='Yet another Python binding for fastText',
long_description=open('README.rst', 'r').read(),
license='GPLv3',
cmdclass = {'build_ext': build_ext},
package_dir={'': 'src'},
ext_modules=cythonize(extension, compile_time_env={'USE_NUMPY': USE_NUMPY}),
install_requires=install_requires,
Expand Down
2 changes: 1 addition & 1 deletion src/pyfasttext.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ cdef class FastText:

return arr

def get_substrings(self, word):
def get_subwords(self, word):
if not self.loaded:
return []

Expand Down

0 comments on commit 4a9b1d5

Please sign in to comment.