Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BERT_NER.py#L450 same code in if-else in both branches #91

Open
natasasdj opened this issue Mar 24, 2021 · 0 comments
Open

BERT_NER.py#L450 same code in if-else in both branches #91

natasasdj opened this issue Mar 24, 2021 · 0 comments

Comments

@natasasdj
Copy link

natasasdj commented Mar 24, 2021

BERT_NER.py#L450

if FLAGS.crf: (total_loss, logits,predicts) = create_model(bert_config, is_training, input_ids, mask, segment_ids, label_ids,num_labels, use_one_hot_embeddings)`

else: (total_loss, logits, predicts) = create_model(bert_config, is_training, input_ids, mask, segment_ids, label_ids,num_labels, use_one_hot_embeddings)

The same code is for both conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant