Skip to content

Commit

Permalink
Update create_ner_model_git_json.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Jul 6, 2024
1 parent b368653 commit 570613c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine-learn/create_ner_model_git_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def custom_tokenizer(nlp):
for example in training_data:
nlp.update([example], drop=0.5, losses=losses)
print(str(itn) + ": " + str(losses))
if int(losses['ner']) <= 200:
if int(losses['ner']) <= 50:
break

# Save the trained model to disk
Expand Down

0 comments on commit 570613c

Please sign in to comment.