forked from tdwojak/Python2017
done
This commit is contained in:
parent
384abbe074
commit
77ffeebaea
@ -13,7 +13,12 @@ jak 'set', która przechowuje elementy bez powtórzeń.)
|
||||
|
||||
|
||||
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)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user