https://github.com/hengluchang/visualizing_contextual_vectors
Visualizing ELMo Contextual Vectors for Word Sense Disambiguation
https://github.com/hengluchang/visualizing_contextual_vectors
elmo machine-learning nlp python visualization
Last synced: 8 months ago
JSON representation
Visualizing ELMo Contextual Vectors for Word Sense Disambiguation
- Host: GitHub
- URL: https://github.com/hengluchang/visualizing_contextual_vectors
- Owner: hengluchang
- License: mit
- Created: 2019-04-15T00:13:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T22:42:34.000Z (almost 6 years ago)
- Last Synced: 2025-04-06T20:35:55.278Z (about 1 year ago)
- Topics: elmo, machine-learning, nlp, python, visualization
- Language: Python
- Size: 4.88 KB
- Stars: 15
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# visualizing_contextual_vectors
Visualizing ELMo Contextual Vectors for Word Sense Disambiguation. Check out the medium blog post [here](https://towardsdatascience.com/visualizing-elmo-contextual-vectors-94168768fdaa)!
# Pre-reqs
Python 3.6
# How to install
```pip install -r requirements.txt```
# How to run
`python elmo_vis.py` to visualize elmo contextual vectors of three words - bank, work, and plant.
# References
- [Deep contextualized word representations](https://arxiv.org/pdf/1802.05365.pdf)
- [Allen NLP readme for ELMo](https://github.com/allenai/allennlp/blob/master/tutorials/how_to/elmo.md)