dmlc / gluon-nlp

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

[SCRIPT] fix electra pretraining utils #1518

Closed szha closed 3 years ago

szha commented 3 years ago

Description

Add the import change was missed when staging my last fix.

Checklist

Essentials

Changes

cc @dmlc/gluon-nlp-team

github-actions[bot] commented 3 years ago

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

codecov[bot] commented 3 years ago

Codecov Report

Merging #1518 (312e5f3) into master (601c752) will decrease coverage by 0.47%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1518      +/-   ##
==========================================
- Coverage   86.34%   85.87%   -0.48%     
==========================================
  Files          55       55              
  Lines        7513     7396     -117     
==========================================
- Hits         6487     6351     -136     
- Misses       1026     1045      +19     
Impacted Files Coverage Δ
conftest.py 76.31% <0.00%> (-9.94%) :arrow_down:
src/gluonnlp/data/loading.py 75.75% <0.00%> (-2.36%) :arrow_down:
src/gluonnlp/utils/lazy_imports.py 58.42% <0.00%> (-2.25%) :arrow_down:
src/gluonnlp/utils/misc.py 54.86% <0.00%> (-1.50%) :arrow_down:
src/gluonnlp/data/tokenizers/spacy.py 65.33% <0.00%> (-0.91%) :arrow_down:
src/gluonnlp/data/tokenizers/huggingface.py 71.06% <0.00%> (-0.78%) :arrow_down:
src/gluonnlp/data/tokenizers/jieba.py 73.13% <0.00%> (-0.40%) :arrow_down:
src/gluonnlp/models/transformer_xl.py 80.48% <0.00%> (-0.39%) :arrow_down:
src/gluonnlp/models/xlmr.py 87.87% <0.00%> (-0.36%) :arrow_down:
src/gluonnlp/models/electra.py 76.50% <0.00%> (-0.34%) :arrow_down:
... and 17 more

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 601c752...312e5f3. 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/PR1518/312e5f318c181ac8b59210d612f043f25950e802/index.html