Commit c5d68192 authored by  Andrei  Serbanescu's avatar Andrei Serbanescu

teeny tiny cleanup

parent f95efc57
......@@ -264,8 +264,6 @@ def get_word_vectors_mean_bert(word_vecs, render_weights=False, remove_stopwords
def get_word_vectors_mean(word_vecs, render_weights=False, remove_stopwords=False, nlp=None):
if remove_stopwords:
word_vecs = list(filter(lambda word_info: not word_info["is_stop"], word_vecs))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment