Token Classification
Transformers
ONNX
Safetensors
Transformers.js
Japanese
bert
onnxruntime
pii
pii-detection
ner
privacy
redaction
presidio
japanese
Eval Results (legacy)
Instructions to use japan-opendata/ja-pii-ner-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use japan-opendata/ja-pii-ner-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="japan-opendata/ja-pii-ner-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("japan-opendata/ja-pii-ner-v1") model = AutoModelForTokenClassification.from_pretrained("japan-opendata/ja-pii-ner-v1", device_map="auto") - Transformers.js
How to use japan-opendata/ja-pii-ner-v1 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'japan-opendata/ja-pii-ner-v1'); - Notebooks
- Google Colab
- Kaggle
Ctrl+K