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")# 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") - Notebooks
- Google Colab
- Kaggle
Upload RobertaForTokenClassification
Browse files- config.json +1 -1
- pytorch_model.bin +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/vol/research/lyc/metaphor/checkpoints/
|
| 3 |
"architectures": [
|
| 4 |
"RobertaForTokenClassification"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/vol/research/lyc/metaphor/checkpoints/meta",
|
| 3 |
"architectures": [
|
| 4 |
"RobertaForTokenClassification"
|
| 5 |
],
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 496296301
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77cc19c1d451953703fbf9ac8d47c2477d05846a617e38ea1d30f9f439360b08
|
| 3 |
size 496296301
|