From a56bfaacebd66c88860f00fdf29dda2daf43b630 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 21 Sep 2019 16:00:35 +0300 Subject: Fix imports --- WMD_matching.py | 2 -- Wasserstein_Distance.py | 1 + 2 files changed, 1 insertion(+), 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 @@ import argparse import numpy as np -from mosestokenizer import * -import nltk import random from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer from 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 from pathos.multiprocessing import ProcessingPool as Pool from sklearn.metrics import euclidean_distances import numpy as np +from mosestokenizer import MosesDetokenizer class Wasserstein_Matcher(KNeighborsClassifier): """ -- cgit v1.2.3-70-g09d2