Skip to content

Releases: ltgoslo/simple_elmo

0.9.2

09 May 17:56
Compare
Choose a tag to compare

Changes

Fixed loading models without vocabularies from ZIP archives

0.9.1

03 Jan 16:17
Compare
Choose a tag to compare

Changes

Simple_elmo is now compatible with the up-to-date versions of the smart_open library.

0.9.0

05 Nov 14:11
Compare
Choose a tag to compare

Changes

  • The get_elmo_vectors() and get_elmo_vector_average() methods can now re-use existing TensorFlow sessions. This is extremely useful, for example, when using ELMo models as embedding generators for downstream models. See an example in the README.
  • Further speed improvements for the new experimental get_elmo_substitutes() method for language modeling

0.8.0

31 Mar 13:13
Compare
Choose a tag to compare

Changes

  • The new get_elmo_substitutes() method for language modeling now uses batching and is significantly faster.
  • Language mode predictions yield lists instead of numpy arrays, for easier serializing.
  • Language model predictions yield raw logit scores instead of probabilities.

0.7.0

15 Mar 00:26
Compare
Choose a tag to compare

Changes

  • A new get_elmo_substitutes() method for language modeling. Requires full model checkpoint with the softmax weights (should be loaded with full=True). Still experimental.
  • The number of deprecation warnings is reduced.

0.6.0

02 Nov 02:07
Compare
Choose a tag to compare

Changes

  • Whether to use the top layer or the average of all layers is now the layers argument of the get_elmo_vectors() and get_elmo_vectors_average() methods. It is no longer necessary to state this when loading a model.
  • The layers argument can take the all value. In this case, raw weights from all 3 ELMo layers are returned.
  • Small fixes

0.5.1

22 Oct 21:56
Compare
Choose a tag to compare

Changes

  • Code cleanup
  • Word sense disambiguation example

0.5.0

19 Oct 18:45
Compare
Choose a tag to compare

Changes

  • The file with model weights to load no longer has to be named model.hdf5: can be anything with the .hdf5 extension.
  • Default batch size reduced to 32 (should ease the usage on low-resource machines).
  • Warming on the first batch is performed by default (as a rule, slightly improves the performance).
  • FAQ added to the Github page.

0.4.1

09 Oct 15:31
Compare
Choose a tag to compare

Changes

  • Scikit-learn is no longer required.
  • Example scripts moved to the examples directory.

0.4.0

28 Sep 20:42
Compare
Choose a tag to compare

Changes

  • Vocabulary file is no longer obligatory when loading a pre-trained model.
  • The module name is now officially simple_elmo (with the underscore).