Views
No views yet
KoichiYasuoka/roberta-base-tibetan for title and author span detection in Tibetan text segments.| ID | Label |
|---|---|
| 0 | O |
| 1 | B-TITLE |
| 2 | I-TITLE |
| 3 | B-AUTHOR |
| 4 | I-AUTHOR |
| Metric | Koichi | Spsither baseline |
|---|---|---|
| span F1 | 12.3% | 3.1% |
| title F1 | 15.8% | 7.4% |
| author F1 | 9.4% | 1.0% |
1from pipeline.inference import load_model_and_tokenizer, predict_segment, highlight_spans
2
3model, tokenizer, device = load_model_and_tokenizer("ganga4364/tibetan-metadata-koichi-ner")
4spans = predict_segment(model, tokenizer, your_tibetan_text, device=device)
5print(highlight_spans(your_tibetan_text, spans))