Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

CheezOne
/
pii-detector-cjk-small

Token Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
pii
pii-detection
ner
privacy
anonymization
redaction
de-identification
chinese
japanese
korean
cjk
mmbert
个人信息
脱敏
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use CheezOne/pii-detector-cjk-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use CheezOne/pii-detector-cjk-small with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("token-classification", model="CheezOne/pii-detector-cjk-small")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForTokenClassification
    
    tokenizer = AutoTokenizer.from_pretrained("CheezOne/pii-detector-cjk-small")
    model = AutoModelForTokenClassification.from_pretrained("CheezOne/pii-detector-cjk-small", device_map="auto")
  • Transformers.js

    How to use CheezOne/pii-detector-cjk-small with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('token-classification', 'CheezOne/pii-detector-cjk-small');
  • Notebooks
  • Google Colab
  • Kaggle
pii-detector-cjk-small / scripts
72.7 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
CheezOne's picture
CheezOne
Add pipeline eval script
8fba8bc verified about 3 hours ago
  • bench_redaction.py
    2.46 kB
    Release 2 days ago
  • card_extra.py
    3.57 kB
    Card: use cases, 30-language benchmark, side-by-side examples vs 3 open PII models 2 days ago
  • case_study.py
    3.93 kB
    Card: use cases, 30-language benchmark, side-by-side examples vs 3 open PII models 2 days ago
  • common.py
    5.79 kB
    Release 2 days ago
  • error_analysis.py
    1.27 kB
    Release 2 days ago
  • export_onnx.py
    3.82 kB
    Release 2 days ago
  • gen_zh_realistic.py
    20.4 kB
    Release 2 days ago
  • make_card.py
    14 kB
    Card: use cases, 30-language benchmark, side-by-side examples vs 3 open PII models 2 days ago
  • make_multilingual_test.py
    1.14 kB
    Card: use cases, 30-language benchmark, side-by-side examples vs 3 open PII models 2 days ago
  • pii_pipeline_eval.py
    1.62 kB
    Add pipeline eval script about 3 hours ago
  • prep_openpii.py
    2.54 kB
    Release 2 days ago
  • publish.py
    3.05 kB
    Release 2 days ago
  • quant_sweep.py
    2.15 kB
    Release 2 days ago
  • train.py
    6.97 kB
    Release 2 days ago