Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| # idioms and their meanings are from https://en.wikipedia.org/wiki/English-language_idioms | |
| # you'll need hugging face transformers, numpy, pytorch, and matplotlib for this demo | |
| import numpy as np | |
| from transformers import pipeline, AutoTokenizer, AutoModel | |
| import matplotlib.pyplot as plt |
OlderNewer