bigdata-ustc / EduNLP

A library for advanced Natural Language Processing towards multi-modal educational items.
Apache License 2.0
51 stars 18 forks source link

[FEATURE] Add Elmo #120

Closed pingzhili closed 2 years ago

pingzhili commented 2 years ago

Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.

Description

(Brief description on what this PR is about)

What does this implement/fix? Explain your changes.

  1. Add bi-LM for Elmo model
  2. Add training and fine-tuning for Elmo model
  3. Add Elmo to infer vectors
  4. Add Elmo for i2v and t2v

Pull request type

Changes

Does this close any currently open issues?

issue #65

Any relevant logs, error output, etc?

N/A

Checklist

Before you submit a pull request, please make sure you have to following:

Essentials

Comments

codecov-commenter commented 2 years ago

Codecov Report

Merging #120 (6f238d9) into dev (bc4b2f9) will decrease coverage by 0.80%. The diff coverage is 94.40%.

@@             Coverage Diff             @@
##               dev     #120      +/-   ##
===========================================
- Coverage   100.00%   99.19%   -0.81%     
===========================================
  Files           48       50       +2     
  Lines         1506     1747     +241     
===========================================
+ Hits          1506     1733     +227     
- Misses           0       14      +14     
Impacted Files Coverage Δ
EduNLP/Tokenizer/tokenizer.py 100.00% <ø> (ø)
EduNLP/Vector/rnn/rnn.py 100.00% <ø> (ø)
EduNLP/I2V/i2v.py 98.07% <92.30%> (-1.93%) :arrow_down:
EduNLP/Pretrain/elmo_vec.py 92.61% <92.61%> (ø)
EduNLP/Vector/elmo_vec.py 97.77% <97.77%> (ø)
EduNLP/I2V/__init__.py 100.00% <100.00%> (ø)
EduNLP/ModelZoo/rnn/__init__.py 100.00% <100.00%> (ø)
EduNLP/ModelZoo/rnn/rnn.py 100.00% <100.00%> (ø)
EduNLP/Pretrain/__init__.py 100.00% <100.00%> (ø)
EduNLP/Vector/__init__.py 100.00% <100.00%> (ø)
... and 2 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 bc4b2f9...6f238d9. Read the comment docs.