1
0
forked from tdwojak/Python2017
This commit is contained in:
s45147 2017-11-20 10:21:13 +01:00
parent e1ae7f9cae
commit 090a391b68

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)