Token Classification
Transformers
Safetensors
English
Chinese
distilbert
pii-detection
ner
presidio
gdpr
ccpa
hong-kong
singapore
china
Instructions to use ohhsj/rail-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ohhsj/rail-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ohhsj/rail-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ohhsj/rail-v2") model = AutoModelForTokenClassification.from_pretrained("ohhsj/rail-v2") - Notebooks
- Google Colab
- Kaggle
| { | |
| "O": 1.0, | |
| "B-PERSON_NAME": 5.478, | |
| "I-PERSON_NAME": 19.2882, | |
| "B-EMAIL": 14.5256, | |
| "I-EMAIL": 50.0, | |
| "B-USERNAME": 50.0, | |
| "I-USERNAME": 50.0, | |
| "B-ID_NUM": 16.7801, | |
| "I-ID_NUM": 50.0, | |
| "B-PHONE_NUM": 21.764, | |
| "I-PHONE_NUM": 23.7586, | |
| "B-URL_PERSONAL": 17.8262, | |
| "I-URL_PERSONAL": 50.0, | |
| "B-STREET_ADDRESS": 28.8893, | |
| "I-STREET_ADDRESS": 11.0647, | |
| "B-NAME_ZH_BILINGUAL": 50.0, | |
| "I-NAME_ZH_BILINGUAL": 50.0, | |
| "B-ADDRESS_SG": 50.0, | |
| "I-ADDRESS_SG": 16.3405, | |
| "B-ADDRESS_CN": 50.0, | |
| "I-ADDRESS_CN": 8.2664, | |
| "B-SG_PHONE": 50.0, | |
| "I-SG_PHONE": 50.0, | |
| "B-CN_PHONE": 50.0, | |
| "I-CN_PHONE": 50.0, | |
| "B-BANK_ACCOUNT_SG": 50.0, | |
| "I-BANK_ACCOUNT_SG": 50.0, | |
| "B-BANK_ACCOUNT_CN": 50.0, | |
| "I-BANK_ACCOUNT_CN": 50.0, | |
| "B-COMPANY_NAME": 6.153, | |
| "I-COMPANY_NAME": 3.5587, | |
| "B-TAX_ID": 50.0, | |
| "I-TAX_ID": 1.0, | |
| "B-EMPLOYEE_ID": 50.0, | |
| "I-EMPLOYEE_ID": 1.0, | |
| "B-LICENSE_NUM": 50.0, | |
| "I-LICENSE_NUM": 50.0, | |
| "B-HK_ID": 50.0, | |
| "I-HK_ID": 1.0, | |
| "B-ADDRESS_HK": 50.0, | |
| "I-ADDRESS_HK": 17.0498, | |
| "B-HK_PHONE": 50.0, | |
| "I-HK_PHONE": 50.0, | |
| "B-BANK_ACCOUNT_HK": 50.0, | |
| "I-BANK_ACCOUNT_HK": 1.0, | |
| "B-GST_REG_NUM": 50.0, | |
| "I-GST_REG_NUM": 1.0 | |
| } |