How to use Xenova/tiny-random-ErnieForTokenClassification with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Xenova/tiny-random-ErnieForTokenClassification');