Token Classification
Transformers
ONNX
Safetensors
modernbert
ner
on-device
privacy
flowx
openner
insurance
de-identification
Run this model with HF Jobs
Run flowxai/claimextract on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/flowxai/claimextract. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/flowxai/claimextract on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use flowxai/claimextract with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flowxai/claimextract with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="flowxai/claimextract")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("flowxai/claimextract") model = AutoModelForTokenClassification.from_pretrained("flowxai/claimextract", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add OpenNER model, card, NOTICE (Apache-2.0, FlowX.AI)
Browse filesFiles changed (12)
- .gitattributes+1
- NOTICEAdded+8
- README.mdAdded+43
- config.jsonAdded+100
- metrics.jsonAdded+11
- model.safetensorsAdded+3
- onnx/model.int8.onnxAdded+3
- onnx/model.onnxAdded+3
- onnx/model.onnx.dataAdded+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+17
- training_args.binAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textonnx/model.onnx.data filter=lfs diff=lfs merge=lfs -text
12345678FlowX OpenNERCopyright 2026 FlowX.AI
This product includes software and models developed at FlowX.AI (https://flowx.ai).Licensed under the Apache License, Version 2.0 (the "License"); you may not use thesefiles except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.012345678910111213141516171819202122232425262728293031323334353637383940414243---license: apache-2.0library_name: transformerspipeline_tag: token-classificationbase_model: answerdotai/ModernBERT-basetags: - ner - on-device - privacy - flowx - openner - insurance - de-identification - token-classificationmetrics: - f1---
# ClaimExtract
**ClaimExtract** is a small, on-device insurance NER model from the FlowX **OpenNER** family. Developed by **FlowX.AI**. Runs 100% on-premise / air-gapped, so no data leaves your boundary.
## What it does- **Task:** token-classification- **Base model:** `answerdotai/ModernBERT-base`- **Entity types (4):** CAUSE_OF_LOSS, CLAIM_NO, LOSS_DATE, RESERVE- **Held-out F1:** 1.0000- **Runtime:** CPU, Apple Silicon, one GPU, or browser/edge via ONNX (INT8). ~100-160 ms/doc on CPU.
## Why a small modelFine-tuned encoders match or beat frontier LLMs on structured, convention-bound extraction, at a fraction of the latency and cost, with **zero data egress**. Identifiers are validated by checksum (IBAN mod-97, card Luhn, ISIN/LEI, container ISO-6346, VIN, national IDs), a correctness guarantee general LLMs lack. See the FlowX OpenNER benchmark for measured results.
## Usage```pythonfrom transformers import AutoTokenizer, AutoModelForTokenClassificationtok = AutoTokenizer.from_pretrained("flowxai/claimextract")model = AutoModelForTokenClassification.from_pretrained("flowxai/claimextract")```
## License & attributionLicensed under the **Apache License 2.0**. Copyright 2026 **FlowX.AI** (https://flowx.ai). See the `NOTICE` file. Trained on synthetic, checksum-validated data.
_Part of the FlowX OpenNER model family. Synthetic-data F1 reflects an in-distribution synthetic distribution; validate on real documents before production use._123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100{ "architectures": [ "ModernBertForTokenClassification" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 50281, "classifier_activation": "gelu", "classifier_bias": false, "classifier_dropout": 0.0, "classifier_pooling": "mean", "cls_token_id": 50281, "decoder_bias": true, "deterministic_flash_attn": false, "dtype": "float32", "embedding_dropout": 0.0, "eos_token_id": 50282, "global_attn_every_n_layers": 3, "gradient_checkpointing": false, "hidden_activation": "gelu", "hidden_size": 768, "id2label": { "0": "O", "1": "B-CLAIM_NO", "2": "I-CLAIM_NO", "3": "B-LOSS_DATE", "4": "I-LOSS_DATE", "5": "B-CAUSE_OF_LOSS", "6": "I-CAUSE_OF_LOSS", "7": "B-RESERVE", "8": "I-RESERVE" }, "initializer_cutoff_factor": 2.0, "initializer_range": 0.02, "intermediate_size": 1152, "label2id": { "B-CAUSE_OF_LOSS": 5, "B-CLAIM_NO": 1, "B-LOSS_DATE": 3, "B-RESERVE": 7, "I-CAUSE_OF_LOSS": 6, "I-CLAIM_NO": 2, "I-LOSS_DATE": 4, "I-RESERVE": 8, "O": 0 }, "layer_norm_eps": 1e-05, "layer_types": [ "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention" ], "local_attention": 128, "max_position_embeddings": 8192, "mlp_bias": false, "mlp_dropout": 0.0, "model_type": "modernbert", "norm_bias": false, "norm_eps": 1e-05, "num_attention_heads": 12, "num_hidden_layers": 22, "pad_token_id": 50283, "position_embedding_type": "absolute", "rope_parameters": { "full_attention": { "rope_theta": 160000.0, "rope_type": "default" }, "sliding_attention": { "rope_theta": 10000.0, "rope_type": "default" } }, "sep_token_id": 50282, "sparse_pred_ignore_index": -100, "sparse_prediction": false, "tie_word_embeddings": true, "transformers_version": "5.14.1", "use_cache": false, "vocab_size": 50368}1234567891011{ "test_loss": 2.627842832225724e-07, "test_precision": 1.0, "test_recall": 1.0, "test_f1": 1.0, "test_accuracy": 1.0, "test_runtime": 4.6078, "test_samples_per_second": 868.092, "test_steps_per_second": 27.128, "epoch": 3.0}123version https://git-lfs.github.com/spec/v1oid sha256:38a3e2b11a563d082c1835daa77e64b8aced98a277582639fef975d9379d4950size 598461316123version https://git-lfs.github.com/spec/v1oid sha256:1ef5e070eb0a394bb0b0f2b7ba7bb6cd8b91564024a2deb57ab6e6be4426bd75size 152201976123version https://git-lfs.github.com/spec/v1oid sha256:828403aab22eb54396c3565496ce8a5c88a95f7584351d4fc5e1a7f8f33468c6size 2616337123version https://git-lfs.github.com/spec/v1oid sha256:0ebca8015fcd5ad200f108e0ea044a0326176c29c3110992d1e2395a8b43bd5esize 5984747521234567891011121314151617{ "backend": "tokenizers", "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "is_local": false, "local_files_only": false, "mask_token": "[MASK]", "model_input_names": [ "input_ids", "attention_mask" ], "model_max_length": 8192, "pad_token": "[PAD]", "sep_token": "[SEP]", "tokenizer_class": "TokenizersBackend", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:2ba219d326191ca5d3bfecc3bf88d2030709359b079cc5295ea52ae970003d98size 5201.gitattributes+1
NOTICEAdded+8
README.mdAdded+43
config.jsonAdded+100
metrics.jsonAdded+11
model.safetensorsAdded+3
onnx/model.int8.onnxAdded+3
onnx/model.onnxAdded+3
onnx/model.onnx.dataAdded+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+17
training_args.binAdded+3