移动 命名实体的代码位置

This commit is contained in:
jiangzhonglian
2020-09-01 15:49:46 +08:00
parent 97286e2ba1
commit d6123a1b07
9 changed files with 185 additions and 127 deletions

27
config/setting.py Normal file
View File

@@ -0,0 +1,27 @@
# *-* coding:utf-8 *-*
'''
@author: 片刻
@date: 20200901 22:02
'''
class TextNER(object):
DEBUG = False
path_root = "/home/wac/jiangzhonglian"
if DEBUG:
path_root = "/Users/jiangzl/work/data/深度学习/nlp/命名实体识别/data"
path_train = '%s/train_data.data' % path_root
path_test = '%s/test_data.data' % path_root
path_config = '%s/config.pkl' % path_root
path_model = '%s/model.h5' % path_root
# 迭代次数
EPOCHS = 3
# embedding的列数
EMBED_DIM = 128
# LSTM的列数
BiLSTM_UNITS = 128
class Config(object):
nlp_ner = TextNER()