Scripts to collect ELMo layer outputs for sentences from a CoNLL treebank.
Run pipenv install
to install the required dependencies.
Switch to the virtual environment using pipenv shell
.
Run elmo_from_conll.bash your_treebank.conll sentence_weights.hdf5
.
Options like custom models etc. can be adapted in the script.