mirror of
https://github.com/apachecn/ailearning.git
synced 2026-04-24 18:42:25 +08:00
移动 命名实体的代码位置
This commit is contained in:
27
config/setting.py
Normal file
27
config/setting.py
Normal 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()
|
||||
Reference in New Issue
Block a user