Skip to content

Why is token-classification with T5 not available? (T5ForTokenClassification) #1419

@debevv

Description

@debevv

Question

In python tranformers i can do:

model = AutoModelForTokenClassification.from_pretrained("google-t5/t5-base")

and use it with Trainer to train it (quite successfully).
Or

classifier = pipeline("token-classification", model="google-t5/t5-base")

and use it for token classification.

Instead, if I try to use it in transformers.js (web, 3.7.3):

classifier = await pipeline('token-classification', "google-t5/t5-base")

I receive this error:

Unsupported model type: t5

How come? Or there is another way to use T5 for token classification in javascript?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions