Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piegu/09206484a171182b35a30b43745a85bf to your computer and use it in GitHub Desktop.
Save piegu/09206484a171182b35a30b43745a85bf to your computer and use it in GitHub Desktop.
initialization of Byte-Level-BPE_universal_tokenizer_but.ipynb
Display the source blob
Display the rendered blob
Raw
from fastai2.text.all import *
from nlputils_fastai2 import *
# Get config of fastai2 paths
config = Config()
# setup new path_data and create the corresponding folder
lang = 'pt'
name = f'{lang}_wiki'
data_path = config['data_path']
path_data = data_path/name
path_data.mkdir(exist_ok=True, parents=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment