forked from tdwojak/Python2017
commited tasks
This commit is contained in:
parent
4f1d8b6065
commit
82d5caf3d7
@ -13,11 +13,12 @@ jak 'set', która przechowuje elementy bez powtórzeń.)
|
|||||||
|
|
||||||
|
|
||||||
def oov(text, vocab):
|
def oov(text, vocab):
|
||||||
testList = []
|
test_list = []
|
||||||
_textPlit =text.split("")
|
_textSPlit =text.split(" ")
|
||||||
|
for i in _textSPlit:
|
||||||
|
if i not in vocab:
|
||||||
return
|
test_list.append(i)
|
||||||
|
return test_list
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user