1
0
Fork 0
This commit is contained in:
s45147 2017-11-20 10:21:13 +01:00
parent e1ae7f9cae
commit 090a391b68
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ def oov(text, vocab):
text_splitted = text.split(' ') text_splitted = text.split(' ')
for word in text_splitted: for word in text_splitted:
if word.lower() not in vocab: if word.lower() not in vocab:
list_of_words.append(word) list_of_words.append(word.lower())
return set(list_of_words) return set(list_of_words)