mirror of
https://github.com/fastai/fastbook.git
synced 2025-04-04 18:00:48 +00:00
Merge pull request #4 from fakhar-iqbal/fakhar-iqbal-patch-6
Tokenization step updated, Update 11_midlevel_data.ipynb
This commit is contained in:
commit
d27b447baf
@ -153,9 +153,11 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"tok = Tokenizer.from_folder(path)\n",
|
||||
"spacy = WordTokenizer()\n",
|
||||
"tok = Tokenizer(spacy)\n",
|
||||
"tok.setup(txts)\n",
|
||||
"toks = txts.map(tok)\n",
|
||||
|
||||
"toks[0]"
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user