Instructions to use CreativeLang/metaphor_detection_roberta_seq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CreativeLang/metaphor_detection_roberta_seq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="CreativeLang/metaphor_detection_roberta_seq")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("CreativeLang/metaphor_detection_roberta_seq") model = AutoModelForTokenClassification.from_pretrained("CreativeLang/metaphor_detection_roberta_seq", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from CreativeLang/metaphor_detection_roberta_seq: direct link, hf CLI and curl.
- Browser
- Download file 2.11 MB
-
https://huggingface.co/CreativeLang/metaphor_detection_roberta_seq/resolve/main/tokenizer.json
- Command line
-
hf download hf://CreativeLang/metaphor_detection_roberta_seq/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/CreativeLang/metaphor_detection_roberta_seq/resolve/main/tokenizer.json
2.11 MB
File too large to display, you can check the raw version instead.