cube-studio/job-template/job/ner/config.py

13 lines
299 B
Python
Raw Normal View History

2022-08-13 17:00:41 +08:00
class TrainingConfig(object):
epochs = 10
batch_size = 16 # batch_size != 1
lr = 0.0005
class BiLSTMConfig(object):
input_size = 768 # embedding size
hidden_size = 512
class BiLSTMCRFTrainConfig(object):
epochs = 10
batch_size = 16 # batch_size != 1
lr = 0.0005