Downloads · 30 days
5
2% of all-time downloads
ngocthanhdoan/phobert-giay_ra_vien-ner
phobert-giay_ra_vien-ner is a machine learning model from ngocthanhdoan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
PhoBERT-based Named Entity Recognition model for Vietnamese Giấy ra viện documents.
Downloads · 30 days
5
2% of all-time downloads
All-time downloads
285
Public
Parameters
134M
538 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors538 MB · 100%
From the Hugging Face model README
PhoBERT-based Named Entity Recognition model for Vietnamese Giấy ra viện documents.
Model này được train hoàn toàn trên dữ liệu giả lập (synthetic/mockup data), KHÔNG sử dụng dữ liệu cá nhân thật.
This model is fine-tuned from vinai/phobert-base for token-level NER on Vietnamese administrative/medical documents. It extracts structured fields from OCR text output.
B-admission_dateB-bhxh_codeB-departmentB-dept_mgmtB-diagnosisB-discharge_dateB-hospital_nameB-medical_codeB-notesB-patient_addressB-patient_dobB-patient_ethnicityB-patient_genderB-patient_nameB-patient_occupationB-treatment_methodI-admission_dateI-bhxh_codeI-departmentI-dept_mgmtI-diagnosisI-discharge_dateI-hospital_nameI-notesI-patient_addressI-patient_nameI-patient_occupationI-treatment_methodfrom vietnerm import VietNerm
ner = VietNerm(doc_type="giay_ra_vien", model_path="ngocthanhdoan/phobert-giay_ra_vien-ner")
result = ner.extract("your document text here")
print(result)
from transformers import AutoTokenizer, AutoModelForTokenClassification
import torch
tokenizer = AutoTokenizer.from_pretrained("ngocthanhdoan/phobert-giay_ra_vien-ner")
model = AutoModelForTokenClassification.from_pretrained("ngocthanhdoan/phobert-giay_ra_vien-ner")
text = "your document text here"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.argmax(outputs.logits, dim=-1)
This model is built for research and development purposes only:
VietNerm is a Document AI Factory for Vietnamese documents. It provides a complete pipeline from template-based synthetic data generation to model training and deployment.
pip install vietnerm