bugfix
This commit is contained in:
@@ -145,9 +145,7 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
print('args:\n' + args.__repr__())
|
print('args:\n' + args.__repr__())
|
||||||
|
|
||||||
if args.no_wordpiece:
|
if args.segment:
|
||||||
from tokenizations import tokenization_bert_without_wordpiece as tokenization_bert
|
|
||||||
elif args.segment:
|
|
||||||
from tokenizations import tokenization_bert_word_level as tokenization_bert
|
from tokenizations import tokenization_bert_word_level as tokenization_bert
|
||||||
else:
|
else:
|
||||||
from tokenizations import tokenization_bert
|
from tokenizations import tokenization_bert
|
||||||
|
|||||||
@@ -114,9 +114,7 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
print('args:\n' + args.__repr__())
|
print('args:\n' + args.__repr__())
|
||||||
|
|
||||||
if args.no_wordpiece:
|
if args.segment:
|
||||||
from tokenizations import tokenization_bert_without_wordpiece as tokenization_bert
|
|
||||||
elif args.segment:
|
|
||||||
from tokenizations import tokenization_bert_word_level as tokenization_bert
|
from tokenizations import tokenization_bert_word_level as tokenization_bert
|
||||||
else:
|
else:
|
||||||
from tokenizations import tokenization_bert
|
from tokenizations import tokenization_bert
|
||||||
|
|||||||
Reference in New Issue
Block a user