aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2019-09-21 16:00:35 +0300
committerYigit Sever2019-09-21 16:00:35 +0300
commita56bfaacebd66c88860f00fdf29dda2daf43b630 (patch)
treebd240259124813ce2e0799a8bb70896cd1d47844
parent778f3936edf3104660d23a88fe23da46c42709a4 (diff)
downloadEvaluating-Dictionary-Alignment-a56bfaacebd66c88860f00fdf29dda2daf43b630.tar.gz
Evaluating-Dictionary-Alignment-a56bfaacebd66c88860f00fdf29dda2daf43b630.tar.bz2
Evaluating-Dictionary-Alignment-a56bfaacebd66c88860f00fdf29dda2daf43b630.zip
Fix imports
-rw-r--r--WMD_matching.py2
-rw-r--r--Wasserstein_Distance.py1
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 @@
1import argparse 1import argparse
2import numpy as np 2import numpy as np
3from mosestokenizer import *
4import nltk
5import random 3import random
6from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer 4from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
7from sklearn.preprocessing import normalize 5from sklearn.preprocessing import normalize
diff --git a/Wasserstein_Distance.py b/Wasserstein_Distance.py
index d8d08b8..86204a1 100644
--- a/Wasserstein_Distance.py
+++ b/Wasserstein_Distance.py
@@ -9,6 +9,7 @@ from sklearn.metrics.scorer import check_scoring
9from pathos.multiprocessing import ProcessingPool as Pool 9from pathos.multiprocessing import ProcessingPool as Pool
10from sklearn.metrics import euclidean_distances 10from sklearn.metrics import euclidean_distances
11import numpy as np 11import numpy as np
12from mosestokenizer import MosesDetokenizer
12 13
13class Wasserstein_Matcher(KNeighborsClassifier): 14class Wasserstein_Matcher(KNeighborsClassifier):
14 """ 15 """