Views
No views yet
fastino/gliner2-multi-v1; the PEFT adapter has been merged into the base weights.1from gliner2 import GLiNER2
2
3repo_id = "erickdp/gliner2-multi-sentiment-mixed-c42"
4extractor = GLiNER2.from_pretrained(repo_id, map_location="cpu")
5
6sentiment = {
7 "positivo": "El comentario expresa emociones o actitudes favorables: admiración, cariño, apoyo, halagos, felicitaciones, entusiasmo, humor amistoso",
8 "negativo": "El comentario expresa emociones o actitudes desfavorables: crítica, insulto, burla, queja, rechazo, decepción, enojo, sarcasmo hostil",
9 "neutral": "El comentario no expresa carga emocional: preguntas sin emoción, información objetiva, menciones o etiquetas, anuncios, spam",
10}
11schema = extractor.create_schema().classification("sentimiento", sentiment)
12result = extractor.extract("Me encanta este proyecto, excelente trabajo.", schema)
13print(result)| Item | Value |
|---|---|
| Base model | fastino/gliner2-multi-v1 at c6296e25603e4d31f68ef8a9f4edb73421d1e45a |
| Framework | GLiNER2 1.3.2 |
| Pilot variant | C, 50/50 mixed source |
| Seed | 42 |
| Pilot rank | #1 by mean macro-F1 across both evaluation sources |
| Adaptation | Sentiment-only LoRA, merged into base |
| LoRA | r=16, alpha=32, dropout=0.05 |
| Sequence length | 384 |
| Effective batch size | 16 |
| Training limit | 5 epochs |
| Inference labels | positivo, negativo, neutral |
erickdp/dataset_2026_04_22-v2.0 = neutral, 1 = positive, 2 = negative.| Evaluation source | Accuracy | Macro-F1 | Balanced accuracy | Positive recall | Negative recall | Neutral recall |
|---|---|---|---|---|---|---|
| Claude-500 | 0.75000000 | 0.68561087 | 0.71679871 | 0.88461538 | 0.55813953 | 0.70764120 |
| HF human test (1,203) | 0.69243558 | 0.65679367 | 0.68553289 | 0.89035088 | 0.86033520 | 0.30591260 |