Token Classification
Transformers.js
ONNX
bert
feature-extraction
coreference
multilingual
onnxruntime-web
Instructions to use cp500/infon-coref-pointer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use cp500/infon-coref-pointer with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'cp500/infon-coref-pointer');
File size: 1,922 Bytes
c2597fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | {
"name": "@cp500/infon-coref",
"version": "0.1.0-alpha.0",
"description": "Multilingual coreference resolution in the browser or Node, via ONNX. Backbone is a multilingual MiniLM-L12 distilled from XLM-R; pointer-net + BIO span head are fine-tuned on synthetic Bedrock-generated data across English, Japanese, Korean, Thai, and Chinese.",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"files": [
"dist/",
"README.md",
"LICENSE"
],
"scripts": {
"build": "npm run build:esm && npm run build:cjs && npm run build:types",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:types": "tsc -p tsconfig.types.json",
"clean": "rm -rf dist",
"test": "node --test --import tsx test/**/*.test.ts"
},
"keywords": [
"coreference",
"nlp",
"multilingual",
"onnx",
"onnxruntime-web",
"browser",
"transformers.js-alternative"
],
"license": "Apache-2.0",
"author": "cp500",
"repository": {
"type": "git",
"url": "https://github.com/cp500/infon-coref-js"
},
"homepage": "https://huggingface.co/cp500/infon-coref-pointer",
"peerDependencies": {
"onnxruntime-web": "^1.20.0",
"onnxruntime-node": "^1.20.0"
},
"peerDependenciesMeta": {
"onnxruntime-web": { "optional": true },
"onnxruntime-node": { "optional": true }
},
"dependencies": {
"@huggingface/jinja": "^0.3.0"
},
"devDependencies": {
"@types/node": "^22.0.0",
"onnxruntime-node": "^1.20.0",
"onnxruntime-web": "^1.20.0",
"tsx": "^4.19.0",
"typescript": "^5.6.0"
},
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public"
}
}
|