Added utils path to system path.
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": 31,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
+ "import sys\n",
+ "import os\n",
"import pandas as pd\n",
"import numpy as np\n",
"from tqdm import tqdm, trange\n",
"from pytorch_pretrained_bert.tokenization import BertTokenizer\n",
"from torch.optim import Adam\n",
"\n",
+ "bert_utils_path = os.path.abspath('../../utils_nlp/bert')\n",
+ "if bert_utils_path not in sys.path:\n",
+ " sys.path.insert(0, bert_utils_path)\n",
+ "\n",
"from configs import (PathConfig,\n",
" GlobalConfig, \n",
" DeviceConfig, \n",
