Zaktualizuj 'labs02/task03.py'
This commit is contained in:
parent
8e2f24108d
commit
962f5156b5
@ -12,8 +12,15 @@ jak 'set', która przechowuje elementy bez powtórzeń.)
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
from sets import Set
|
||||||
|
|
||||||
def oov(text, vocab):
|
def oov(text, vocab):
|
||||||
pass
|
rozdzielenie=text.split(' ')
|
||||||
|
slowo=set()
|
||||||
|
|
||||||
|
slowo=(slowo for slowo in rozdzielenie if slowo not in vocab)
|
||||||
|
|
||||||
|
return slowo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user