Downloads · 30 days
21
1% of all-time downloads
ViravirastSHZ/Hafez-NER
Hafez-NER is a token classification model from ViravirastSHZ. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
Model Description: This Named-Entity-Recognition (NER) model is designed to identify and classify named entities in Persian (Farsi) text into predefined categories such as person names, organizations, locations, dates…
Downloads · 30 days
21
1% of all-time downloads
All-time downloads
2K
Public
Parameters
109M
436 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
Model Description: This Named-Entity-Recognition (NER) model is designed to identify and classify named entities in Persian (Farsi) text into predefined categories such as person names, organizations, locations, dates, and more. The model is built using the Hugging Face Transformers library and fine-tuned on the ViravirastSHZ/Hafez_Bert model.
Intended Use: The model is intended for use in applications where identifying and classifying entities in Persian text is required. It can be used for information retrieval, content analysis, customer support automation, and more.
Model Architecture:
Dataset: The model was trained on a diverse corpus of Persian text, with a training dataset of 23,000
Data Preprocessing:
Training Configuration:
Hardware:
The model predicts the following tags:
import torch
from transformers import pipeline
# Load the NER pipeline
ner_pipeline = pipeline("ner", model="ViravirastSHZ/Hafez-NER")
# Example text in Persian
text = "باراک اوباما در هاوایی متولد شد."
# Perform NER
entities = ner_pipeline(text)
# Output the entities
print(entities)
@misc{ViravirastSHZ,
author = {ViravirastSHZ},
title = {Named-Entity-Recognition for Persian using Transformers},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/"ViravirastSHZ/Hafez-NER}},
}