aboutsummaryrefslogtreecommitdiffstats
path: root/Wasserstein_Distance.py
diff options
context:
space:
mode:
Diffstat (limited to 'Wasserstein_Distance.py')
-rw-r--r--Wasserstein_Distance.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Wasserstein_Distance.py b/Wasserstein_Distance.py
index 60991b9..cca2fac 100644
--- a/Wasserstein_Distance.py
+++ b/Wasserstein_Distance.py
@@ -225,9 +225,7 @@ def load_embeddings(path, dimension=300):
225 return vectors 225 return vectors
226 226
227 227
228def clean_corpus_using_embeddings_vocabulary( 228def process_corpus(embeddings_dictionary, corpus, vectors, language):
229 embeddings_dictionary, corpus, vectors, language
230):
231 """ 229 """
232 Cleans corpus using the dictionary of embeddings. 230 Cleans corpus using the dictionary of embeddings.
233 Any word without an associated embedding in the dictionary is ignored. 231 Any word without an associated embedding in the dictionary is ignored.