Spaces:
Sleeping
Sleeping
File size: 209 Bytes
af0538f | 1 2 3 4 5 6 7 8 9 10 |
from transformers import AutoConfig
import json
MODEL_NAME = "ProsusAI/finbert"
config = AutoConfig.from_pretrained(MODEL_NAME)
with open("finbert_labels.json", "w") as f:
json.dump(config.id2label, f)
|