Skip to content

Commit

Permalink
fix do_train error bug
Browse files Browse the repository at this point in the history
  • Loading branch information
macanv committed Mar 6, 2019
1 parent 9f82078 commit f70592b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bert_base/train/train_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def get_args_parser():
group2 = parser.add_argument_group('Model Config', 'config the model params')
group2.add_argument('-max_seq_length', type=int, default=128,
help='The maximum total input sequence length after WordPiece tokenization.')
group2.add_argument('-do_train', type=bool, default=True,
group2.add_argument('-do_train', action='store_false', default=True,
help='Whether to run training.')
group2.add_argument('-do_eval', type=bool, default=True,
group2.add_argument('-do_eval', action='store_false', default=True,
help='Whether to run eval on the dev set.')
group2.add_argument('-do_predict', type=bool, default=True,
help='Whether to run the model in inference mode on the test set.')
group2.add_argument('-do_predict', action='store_false', default=True,
help='Whether to run the predict in inference mode on the test set.')
group2.add_argument('-batch_size', type=int, default=64,
help='Total batch size for training, eval and predict.')
group2.add_argument('-learning_rate', type=float, default=1e-5,
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding =utf-8

from os import path
import codecs
from setuptools import setup, find_packages
Expand All @@ -11,7 +13,7 @@
# print(__version__)
setup(
name='bert_base',
version='0.0.8',
version='0.0.9',
description='Use Google\'s BERT for Chinese natural language processing tasks such as named entity recognition and provide server services',
url='https://github.com/macanv/BERT-BiLSTM-CRF-NER',
long_description=open('README.md', 'r', encoding='utf-8').read(),
Expand Down

0 comments on commit f70592b

Please sign in to comment.