AventIQ-AI / NER-AI-wikiann-model

huggingface.co
Total runs: 6
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: May 22 2025

Introduction of NER-AI-wikiann-model

Model Details of NER-AI-wikiann-model

🧠 NERClassifier-BERT-WikiAnn

A BERT-based Named Entity Recognition (NER) model fine-tuned on the WikiAnn English dataset. It classifies tokens into entity types like Person (PER), Location (LOC), and Organization (ORG). This model is suitable for applications like document tagging, resume parsing, and chatbots.


✨ Model Highlights

  • 📌 Based on bert-base-cased
  • 🔍 Fine-tuned on the WikiAnn (en) NER dataset
  • ⚡ Supports prediction of 3 core entity types: PER, LOC, ORG
  • 💾 Lightweight and compatible with both CPU and GPU inference environment

🧠 Intended Uses

  • ✅ Resume and document parsing
  • ✅ News article analysis
  • ✅ Question answering pipelines
  • ✅ Chatbots and virtual assistants
  • ✅ Information retrieval and tagging

  • 🚫 Limitations

  • ❌ Trained on English-only Wiki-based text

  • ❌ Performance may degrade on informal or non-English texts

  • ❌ Not designed for nested or overlapping entities

  • ❌ Accuracy may drop on very long sequences (>128 tokens)


🏋️‍♂️ Training Details

Field Value
Base Model bert-base-cased
Dataset WikiAnn (English)
Framework PyTorch with 🤗 Transformers
Epochs 3
Batch Size 16
Max Length 128 tokens
Optimizer AdamW
Loss CrossEntropyLoss (token-level)
Device Trained on CUDA-enabled GPU

📊 Evaluation Metrics

Metric Score
Accuracy 0.92
F1-Score 0.92
Precision 0.92
Recall 0.92

🔎 Label Mapping

Label ID Entity Type
0 O
1 B-PER
2 I-PER
3 B-ORG
4 I-ORG
5 B-LOC
6 I-LOC


🚀 Usage

from transformers import BertTokenizerFast, BertForTokenClassification
from transformers import pipeline
import torch

model_name = "AventIQ-AI/NER-AI-wikiann-model"
tokenizer = BertTokenizerFast.from_pretrained(model_name)
model = BertForTokenClassification.from_pretrained(model_name)
model.eval()

#Labelling
label_list = dataset["train"].features["ner_tags"].feature.names
model.config.id2label = {i: label for i, label in enumerate(label_list)}
model.config.label2id = {label: i for i, label in enumerate(label_list)}
ner_pipeline = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")


#Inference
ner_pipeline = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")

test_sentence = "Bill Gates is the CEO of Microsoft and lives in the United States."
ner_results = ner_pipeline(test_sentence)

print("\n📌 Inference Results:")
for entity in ner_results:
    print(f"Entity: {entity['word']}\tType: {entity['entity_group']}\tConfidence: {entity['score']:.3f}")

# Test example
print("Bill Gates is the CEO of Microsoft and lives in the United States.")

  • 🧩 Quantization
  • Post-training static quantization applied using PyTorch to reduce model size and accelerate inference on edge devices.

🗂 Repository Structure

.
├── model/               # Quantized model files
├── tokenizer_config/    # Tokenizer and vocab files
├── model.safensors/     # Fine-tuned model in safetensors format
├── README.md            # Model card

🤝 Contributing

Open to improvements and feedback! Feel free to submit a pull request or open an issue if you find any bugs or want to enhance the model.

Runs of AventIQ-AI NER-AI-wikiann-model on huggingface.co

6
Total runs
0
24-hour runs
-1
3-day runs
0
7-day runs
0
30-day runs

More Information About NER-AI-wikiann-model huggingface.co Model

NER-AI-wikiann-model huggingface.co

NER-AI-wikiann-model huggingface.co is an AI model on huggingface.co that provides NER-AI-wikiann-model's model effect (), which can be used instantly with this AventIQ-AI NER-AI-wikiann-model model. huggingface.co supports a free trial of the NER-AI-wikiann-model model, and also provides paid use of the NER-AI-wikiann-model. Support call NER-AI-wikiann-model model through api, including Node.js, Python, http.

NER-AI-wikiann-model huggingface.co Url

https://huggingface.co/AventIQ-AI/NER-AI-wikiann-model

AventIQ-AI NER-AI-wikiann-model online free

NER-AI-wikiann-model huggingface.co is an online trial and call api platform, which integrates NER-AI-wikiann-model's modeling effects, including api services, and provides a free online trial of NER-AI-wikiann-model, you can try NER-AI-wikiann-model online for free by clicking the link below.

AventIQ-AI NER-AI-wikiann-model online free url in huggingface.co:

https://huggingface.co/AventIQ-AI/NER-AI-wikiann-model

NER-AI-wikiann-model install

NER-AI-wikiann-model is an open source model from GitHub that offers a free installation service, and any user can find NER-AI-wikiann-model on GitHub to install. At the same time, huggingface.co provides the effect of NER-AI-wikiann-model install, users can directly use NER-AI-wikiann-model installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

NER-AI-wikiann-model install url in huggingface.co:

https://huggingface.co/AventIQ-AI/NER-AI-wikiann-model

Url of NER-AI-wikiann-model

NER-AI-wikiann-model huggingface.co Url

Provider of NER-AI-wikiann-model huggingface.co

AventIQ-AI
ORGANIZATIONS

Other API from AventIQ-AI