forked from tdwojak/Python2017
Task03 completed - passed
# commented lower() method.
This commit is contained in:
parent
47ba5d1051
commit
761ebacc34
@ -11,9 +11,15 @@ litery. (OOV = out of vocabulary) (W pythonie istnieje struktura danych tak
|
||||
jak 'set', która przechowuje elementy bez powtórzeń.)
|
||||
"""
|
||||
|
||||
|
||||
def oov(text, vocab):
|
||||
pass
|
||||
def oov(text,vocab):
|
||||
# text = text.lower()
|
||||
# vocab = vocab.lower()
|
||||
wynik = []
|
||||
text = set(text.split())
|
||||
for i in text:
|
||||
if i not in vocab:
|
||||
wynik.append(i)
|
||||
return wynik
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user