diff --git a/alas.bat b/alas.bat index b4c48b714..d5ebc7399 100644 --- a/alas.bat +++ b/alas.bat @@ -250,7 +250,7 @@ if /i "%opt6_opt4_choice%"=="T" ( ) :proceed_alas echo == ^| Updating requirements.txt -CALL pip install numpy==1.16.6 scipy==1.4.1 pillow opencv-python scikit-image==0.16.2 lz4 tqdm requests==2.18.4 uiautomator2==2.9.2 retrying mxnet==1.6.0 cnocr==1.2.2 gooey colored win10toast-persist +CALL pip install numpy==1.16.6 scipy==1.4.1 pillow opencv-python scikit-image==0.16.2 lz4 tqdm requests==2.18.4 uiautomator2==2.9.2 retrying mxnet==1.6.0 cnocr==1.2.2 gooey colored win10toast-persist jellyfish echo == ^| requirements.txt updated! if "%KeepLocalChanges%"=="disable" ( echo == ^| GIT Found in %gitBin% Proceeding diff --git a/module/reward/commission.py b/module/reward/commission.py index 007675a60..20e7c83a9 100644 --- a/module/reward/commission.py +++ b/module/reward/commission.py @@ -1,7 +1,7 @@ import re from datetime import datetime, timedelta -import Levenshtein +import jellyfish from scipy import signal from module.base.decorator import Config @@ -294,7 +294,7 @@ class Commission: string = re.sub(r'[\x00-\x7F]', '', string) for key, value in dictionary_jp.items(): for keyword in value: - distance = Levenshtein.distance(keyword, string) + distance = jellyfish.levenshtein_distance(keyword, string) if distance < min_distance: min_key = key min_distance = distance diff --git a/requirements.txt b/requirements.txt index 79a52b64d..dec5ed144 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,5 +12,6 @@ mxnet==1.6.0 cnocr==1.2.2 gooey colored -python-Levenshtein -win10toast-persist \ No newline at end of file +# python-Levenshtein +win10toast-persist +jellyfish \ No newline at end of file