This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch, apex | |
| from pytorch_pretrained_bert.tokenization import BertTokenizer | |
| from fast_bert.data import BertDataBunch | |
| from fast_bert.learner import BertLearner | |
| from fast_bert.metrics import accuracy | |
| DATA_PATH = Path('../data/') # path for data files (train and val) | |
| LABEL_PATH = Path('../labels/') # path for labels file | |
| MODEL_PATH=Path('../models/') # path for model artifacts to be stored | |
| LOG_PATH=Path('../logs/'). # path for log files to be stored |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.