Downloads · 30 days
10
20% of all-time downloads
ghotriw/roberta-base-english-ud-goeswith-onnx
roberta-base-english-ud-goeswith-onnx is a token classification model from ghotriw. Use it when you need labels on individual words, such as names. The card lists the license as mit.
This is an ONNX export of the KoichiYasuoka/roberta-base-english-ud-goeswith model.
Downloads · 30 days
10
20% of all-time downloads
All-time downloads
50
Public
Repo size
504 MB
Likes
0
Public
Click a slice to open those files.
.onnx504 MB · 99%
From the Hugging Face model README
This is an ONNX export of the KoichiYasuoka/roberta-base-english-ud-goeswith model.
It is a RoBERTa model trained for POS-tagging and dependency-parsing (using goeswith for subwords), optimized for deployment in JavaScript/TypeScript environments (Node.js, Deno, or directly in the browser) without requiring Python.
You can easily run this model in your modern TypeScript stack using Transformers.js.
import { pipeline } from "@huggingface/transformers";
// Initialize the token classification pipeline targeting this specific ONNX repository
const modelId = "ghotriw/roberta-base-english-ud-goeswith-onnx";
const tagger = await pipeline("token-classification", modelId);
// Use aggregation_strategy: 'none' to get raw labels for each subword
const rawTokens = await tagger("I saw a horse", { aggregation_strategy: 'none' });
for (const token of rawTokens) {
const [pos, features, deprel] = token.entity.split('|');
console.log(`Word: ${token.word}, POS: ${pos}, Dep: ${deprel}`);
}