dmlc / gluon-nlp

NLP made easy
https://nlp.gluon.ai/
Apache License 2.0
2.55k stars 538 forks source link

Fix typo in test_bert.py #1476

Closed leezu closed 3 years ago

leezu commented 3 years ago

Description

In test_bert.py we assert about mlm_score instead of mlm_scores in the latter part of the test. To avoid similar copy-paste errors in the future, consistently use mlm_score in the tests.

codecov[bot] commented 3 years ago

Codecov Report

Merging #1476 (0d3101a) into master (adc3046) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1476   +/-   ##
=======================================
  Coverage   85.86%   85.86%           
=======================================
  Files          52       52           
  Lines        6912     6912           
=======================================
  Hits         5935     5935           
  Misses        977      977           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update adc3046...0d3101a. Read the comment docs.

github-actions[bot] commented 3 years ago

The documentation website for preview: http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR1476/test_models_bert_typo/index.html

github-actions[bot] commented 3 years ago

The documentation website for preview: http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR1476/test_models_bert_typo/index.html

github-actions[bot] commented 3 years ago

The documentation website for preview: http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR1476/test_models_bert_typo/index.html