Downloads · 30 days
12
2% of all-time downloads
aimlnerd/bert-finetuned-legalentity-ner-accelerate
bert-finetuned-legalentity-ner-accelerate is a token classification model from aimlnerd. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine tuned BERT transfomers for NER of legal entities in Life Insurance demand letters.
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
577
Public
Parameters
108M
3.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors431 MB · 100%
From the Hugging Face model README
This model is a fine tuned BERT transfomers for NER of legal entities in Life Insurance demand letters.
Dataset is publicly available here https://github.com/aws-samples/aws-legal-entity-extraction.git
The model extracts the following entities:
https://huggingface.co/spaces/aimlnerd/legal-entity-ner-transformers This space expose the model as gradio app and contains, training dataset and code for training.
Dataset consists of legal requisition/demand letters for Life Insurance, however this approach can be used across any industry & document which may benefit from spatial data in NER training.
The OCRed data is present as JSON here data/raw_data/annotations.
I wrote this code to convert the JSON data in format suitable for HF TokenClassification
source/services/ner/awscomprehend_2_ner_format.py
source/services/ner/train/train.py
This code fine tune the BERT model and uploads to huggingface