From 156247e997c0b2fae5e282e8c337fe7863a8ae3f 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..925eca3 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 MosesTokenizer class Wasserstein_Matcher(KNeighborsClassifier): """ -- cgit v1.2.3-70-g09d2