/ Модель

Характеристики

Лицензия
Apache 2.0
Библиотека
gliner
Опубликована
21 сен 2026

goby-12-ie-vi

Разметка токеновТекст → label3 профессии
4скачиваний за 30 дней0лайковвеса обновлены21 сен 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Модель GLiNER для извлечения сущностей и отношений во вьетнамском тексте, особенно должностей с точными границами и текста с искажёнными диакритическими знаками или регистром.

goby-12-ie-vi — модель семейства goby для совместного извлечения сущностей и отношений из вьетнамского текста. Разработчик дообучил её на базе knowledgator/gliner-relex-large-v1.0; модель использует библиотеку GLiNER и распространяется в форматах PyTorch и Safetensors.

Модель предназначена прежде всего для извлечения должностей с точными границами, а также для извлечения типизированных сущностей и отношений во вьетнамских текстах. Обучение включало 5 824 чистых предложения в стиле Википедии и их варианты с удалёнными диакритическими знаками, изменённым регистром или сочетанием этих искажений, поэтому модель рассчитана и на такой ухудшенный ввод. README приводит результаты бенчмарков и рекомендует передавать модели исходные вьетнамские метки с диакритическими знаками и полный список меток отношений.

На чистом тексте общее извлечение сущностей уступает goby-4 и goby-9; результаты извлечения отношений также ниже ряда моделей семейства. Чекпойнт описан как недообученный, а тест точных границ должностей основан на небольшой выборке. Качество на юридических, медицинских и разговорных текстах не подтверждено. Лицензия — Apache-2.0.

Сценарии применения

  • извлечение должностей из вьетнамских биографий и статей
  • извлечение типизированных сущностей из вьетнамского текста
  • извлечение связей между сущностями во вьетнамских предложениях
  • извлечение сущностей из вьетнамского текста без диакритических знаков
  • извлечение сущностей из вьетнамского текста в верхнем или смешанном регистре

Ограничения

На чистом тексте общее извлечение сущностей отстаёт от goby-4 и goby-9; чекпойнт недообучен. Проверка точных границ должностей проведена на небольшой выборке, а качество на юридических, медицинских и разговорных текстах не подтверждено.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

goby-12-ie-vi

Joint entity and relation extraction for Vietnamese. The job-title specialist: the first model in the goby family whose chuc vu spans keep their full boundaries, and the first to beat the base model at it.

What is different about this one

It is fine-tuned directly from knowledgator/gliner-relex-large-v1.0. Every earlier goby was initialized from goby-1, which had learned a span-truncation convention from an uncleaned dataset. Cleaning the data later did not undo it, because the convention lived in the weights, not the labels. Taking goby-1 out of the chain removes it.

Training data: 5,824 clean Vietnamese Wikipedia-style sentences, plus 3,784 degraded copies ADDED alongside them (30% diacritics stripped, 20% lowercased, 15% uppercased). The clean sentences are kept, not replaced - that is what buys robustness without paying for it in clean-text accuracy. 2,970 steps.

Which goby do I want?

what you needmodel
Full job titles, correct chuc vu boundariesgoby-12 (this one)
Degraded input: no diacritics, ALL CAPS, mixed casegoby-12 or goby-7
Best accuracy on clean well-formed prosegoby-4 or goby-9

Results

All numbers below are measured with the REAL relation label list passed to inference. Passing a placeholder relation label instead costs every goby several F1 - see the Usage section.

Job-title boundaries

Held-out instrument: 40 sentences, 55 hand-annotated chuc vu spans with correct boundaries. Strict exact match.

modelthresholdexact (of 55)predictionsF1
gliner-relex-large (base)0.62212125.14
goby-90.4106217.24
goby-70.4137320.47
goby-11 (unreleased)0.4124624.00
goby-120.4165130.48
goby-120.3207930.08

Every earlier goby scored BELOW the base model on this benchmark. goby-12 is the first one above it. It gets there on precision: 16 correct out of 51 predictions, against the base model 22 out of 121.

Degraded text

Same 450-sentence benchmark, whole sentence degraded, each model at its own best threshold:

conditiongoby-12goby-7goby-9goby-4
diacritics stripped50.7951.3021.3422.45
ALL CAPS43.5045.7130.5331.96

goby-12 is in the same class as goby-7, the robustness model, and roughly 2x goby-4 and goby-9 on stripped text.

Typed NER on clean text - this is the cost

450 sentences, 1,328 spans, each model at its own best threshold:

modelbest F1threshold
goby-971.630.60
goby-471.410.70
goby-770.230.65
goby-1263.340.50

goby-12 is 8.4 F1 behind on general clean-text extraction. Do not pick it for that job.

The honest reading: training loss ended at 5.94 for goby-12 against 3.69 for the same recipe initialized from goby-1. The model had not converged at this step budget, so this gap is at least partly the price of the step budget rather than the price of dropping goby-1. A longer run is testing exactly that, and if it holds the gap should close in a later release.

Relations: the operating point matters twice

A relation can only be found if BOTH of its endpoints are detected, so the entity threshold silently caps relation recall. The entity threshold that is best for NER is not the one that is best for relations - they have to be swept together.

Best relation F1 for this model, sweeping both thresholds on 450 sentences / 428 gold relations:

strict F1partial F1precisionrecallentity thresholdrelation_threshold
47.0361.9452.642.520.40.6

Same benchmark, every model at its own best setting (strict F1): goby-4 59.20 | goby-7 56.97 | goby-9 60.50 | goby-12 47.03 | barb-1 63.41.

Earlier versions of this card reported relations measured at the NER-optimal entity threshold only, which understated them.

Usage

pip install gliner==0.2.29
import os, sys
from gliner import GLiNER
from huggingface_hub import hf_hub_download

model = GLiNER.from_pretrained("belumind/goby-12-ie-vi").to("cuda")

sys.path.insert(0, os.path.dirname(
    hf_hub_download("belumind/goby-12-ie-vi", "goby_labels.py")))
from goby_labels import extract

text = "Nam 1960, ong duoc bo nhiem Quan truong quan Duc Hoa thuoc tinh Long An."
ents, rels = extract(model, [text], threshold=0.4, json_keys=True)

Two things that silently cost you accuracy

1. Pass the real relation list, even if you only want entities. The relation head feeds back into entity detection. Measured on this benchmark, calling inference with a placeholder relation label instead of the real list costs every fine-tuned goby between 2 and 6 F1. extract() passes the full list by default.

2. Labels must keep their Vietnamese diacritics. GLiNER encodes the label STRING with the same text encoder as the input, so a de-accented label is a different vector. Measured on goby-7 at threshold 0.5:

labels passed to the modelNER F1cost
with diacritics, spaces74.8-
ASCII, spaces (to chuc)39.8-35.0
snake_case ASCII (to_chuc)29.6-45.2

Re-measured on goby-13 at threshold 0.65 with real relation labels. These are TWO separate penalties: dropping the diacritics costs 35 F1, and replacing the space with an underscore costs another 10 on top of that. An earlier version of this table, measured with a placeholder relation label, reported -21.1 and -24.9 - it understated the damage by about half.

snake_case is perfectly fine as an OUTPUT key - goby_labels maps it for you, with to_model_labels(keys) on the way in and extract(..., json_keys=True) on the way out. It just must never be what you hand the model.

goby_labels.check_labels() raises on that mistake instead of letting it pass silently, and extract(..., json_keys=True) gives you snake_case keys in the OUTPUT for free.

Weights ship as both model.safetensors (what gliner loads by preference) and pytorch_model.bin; the two are byte-identical, tensor for tensor.

Known limitations

  • Clean-text general extraction is 8.4 F1 behind goby-4 and goby-9. If your input is well-formed and you are not specifically after job titles, use one of those.
  • Undertrained. Training loss 5.94 vs 3.69 for the goby-1-initialized twin at the same step count. This checkpoint is released because the boundary result is worth having now, not because it is finished.
  • The job-title benchmark is 55 spans. It is hand-annotated and held out, but it is small.
  • The main 450-sentence benchmark gold is still missing entities; absolute F1 understates every model on it.
  • Trained on Vietnamese Wikipedia-style prose. Legal, medical and conversational text are out of distribution.

Related

Citation

@misc{goby12ievi2026,
  title   = {goby-12-ie-vi: job-title-boundary-corrected joint IE for Vietnamese},
  author  = {Belumind},
  year    = {2026},
  howpublished = {https://huggingface.co/belumind/goby-12-ie-vi}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · gliner

Нельзя запустить

Модели GLiNER требуют отдельного рантайма.

Ревизия весов
e654d50

0 моделей