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?