kyzhouhzau / BERT-NER

Use Google's BERT for named entity recognition (CoNLL-2003 as the dataset).
MIT License
1.23k stars 335 forks source link

crf=False is coded as string therefore it does not work #88

Open gungor2 opened 3 years ago

gungor2 commented 3 years ago

Crf flag is defined like this:

flags.DEFINE_string("crf", "True", "use crf!")

Later, in create_model function, the if statement is defined like this:

if FLAGS.crf

Because crf flag is defined as string, this if statement is always true.