Skip to content

Commit

Permalink
FEATURE/#364
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Aug 27, 2022
1 parent 1dcca00 commit 2fb3a38
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions opteryx/engine/functions/string_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

import numpy

from opteryx.third_party.soundex import Soundex


def string_slicer_left(arr, length):
"""
Slice a list of strings from the left
Expand Down Expand Up @@ -54,6 +51,8 @@ def string_slicer_right(arr, length):


def soundex(arr):
from opteryx.third_party.fuzzy.soundex import Soundex

_soundex = Soundex(4)
interim = ["0000"] * arr.size

Expand Down
Empty file.
File renamed without changes.
1 change: 1 addition & 0 deletions opteryx/third_party/fuzzy/soundex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from csoundex import Soundex
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
include_dirs=[np.get_include()],
),
Extension(
name="soundex",
sources=["opteryx/third_party/soundex.pyx"],
name="csoundex",
sources=["opteryx/third_party/fuzzy/csoundex.pyx"],
include_dirs=[np.get_include()],
),
]
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/test_soundex.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
sys.path.insert(1, os.path.join(sys.path[0], "../.."))

import pytest
from opteryx.third_party.soundex import Soundex
from opteryx.third_party.fuzzy.soundex import Soundex

# fmt:off
TESTS = [
Expand Down

0 comments on commit 2fb3a38

Please sign in to comment.