Views
No views yet
dccuchile/bert-base-spanish-wwm-cased0 → add_reminder1 → analyze_image2 → archive_trello_cards3 → budget_control4 → contact_with_live_agent5 → create_image6 → create_lead7 → create_music8 → delete_reminder9 → get_drive_file10 → get_information11 → get_map12 → get_reminder13 → get_security_code14 → get_trello_cards15 → list_filenames16 → make_call17 → routine_tracking18 → search_filtered_exercises19 → search_information20 → search_products21 → send_email_attachment22 → send_gmail23 → simulate_operations24 → start_conversation25 → upload_drive_file26 → upload_image1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2MODEL_ID = 'ArmandoRockYourCloud/SlotExtractor_MDM_Autonomo'
3
4tok = AutoTokenizer.from_pretrained(MODEL_ID)
5model = AutoModelForSequenceClassification.from_pretrained(MODEL_ID)
6id2label = model.config.id2label
7
8text = 'Agrega un recordatorio para mañana a las 9'
9enc = tok(text, return_tensors='pt', truncation=True, max_length=128)
10with torch.no_grad():
11 logits = model(**enc).logits
12pred = logits.argmax(-1).item()
13print(id2label[str(pred)])config.json incluye los mapeos id2label y label2id.labels.json se incluye como referencia adicional.