diff options
author | Yigit Sever | 2019-09-21 16:00:35 +0300 |
---|---|---|
committer | Yigit Sever | 2019-09-21 16:07:06 +0300 |
commit | 156247e997c0b2fae5e282e8c337fe7863a8ae3f (patch) | |
tree | da1703846e5e89be008a427245da2c8a035aaf75 | |
parent | 778f3936edf3104660d23a88fe23da46c42709a4 (diff) | |
download | Evaluating-Dictionary-Alignment-156247e997c0b2fae5e282e8c337fe7863a8ae3f.tar.gz Evaluating-Dictionary-Alignment-156247e997c0b2fae5e282e8c337fe7863a8ae3f.tar.bz2 Evaluating-Dictionary-Alignment-156247e997c0b2fae5e282e8c337fe7863a8ae3f.zip |
Fix imports
-rw-r--r-- | WMD_matching.py | 2 | ||||
-rw-r--r-- | Wasserstein_Distance.py | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/WMD_matching.py b/WMD_matching.py index 8581ffe..2316a10 100644 --- a/WMD_matching.py +++ b/WMD_matching.py | |||
@@ -1,7 +1,5 @@ | |||
1 | import argparse | 1 | import argparse |
2 | import numpy as np | 2 | import numpy as np |
3 | from mosestokenizer import * | ||
4 | import nltk | ||
5 | import random | 3 | import random |
6 | from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer | 4 | from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer |
7 | from sklearn.preprocessing import normalize | 5 | from sklearn.preprocessing import normalize |
diff --git a/Wasserstein_Distance.py b/Wasserstein_Distance.py index d8d08b8..925eca3 100644 --- a/Wasserstein_Distance.py +++ b/Wasserstein_Distance.py | |||
@@ -9,6 +9,7 @@ from sklearn.metrics.scorer import check_scoring | |||
9 | from pathos.multiprocessing import ProcessingPool as Pool | 9 | from pathos.multiprocessing import ProcessingPool as Pool |
10 | from sklearn.metrics import euclidean_distances | 10 | from sklearn.metrics import euclidean_distances |
11 | import numpy as np | 11 | import numpy as np |
12 | from mosestokenizer import MosesTokenizer | ||
12 | 13 | ||
13 | class Wasserstein_Matcher(KNeighborsClassifier): | 14 | class Wasserstein_Matcher(KNeighborsClassifier): |
14 | """ | 15 | """ |