[Model] Add RobertaForTokenClassification / XLMRobertaForTokenClassification (#47991)

Signed-off-by: krishy91 <crgkc.r@gmail.com>
This commit is contained in:
Gopala-Krishna Char
2026-07-15 14:30:33 +00:00
committed by GitHub
parent 615834ee58
commit 5810e884f1
5 changed files with 118 additions and 1 deletions
+6
View File
@@ -713,6 +713,12 @@ _TOKEN_CLASSIFICATION_EXAMPLE_MODELS = {
"openai/privacy-filter",
min_transformers_version="5.6.0.dev0",
),
"RobertaForTokenClassification": _HfExamplesInfo(
"Jean-Baptiste/roberta-large-ner-english"
),
"XLMRobertaForTokenClassification": _HfExamplesInfo(
"Davlan/xlm-roberta-base-ner-hrl"
),
}
_SEQUENCE_CLASSIFICATION_EXAMPLE_MODELS = {