This commit is contained in:
s45147 2017-11-19 15:29:24 +01:00
parent 384abbe074
commit 77ffeebaea

View File

@ -13,7 +13,12 @@ jak 'set', która przechowuje elementy bez powtórzeń.)
def oov(text, vocab): def oov(text, vocab):
pass list_of_words = []
text_splitted = text.split(' ')
for word in text_splitted:
if word.lower() not in vocab:
list_of_words.append(word)
return set(list_of_words)