arabert-finetuned-caner
An ongoing project for implementation of NLP methods in the field of islamic studies.
Named Entity Recognition
briefly:
- We had to prepair CANERCorpus dataset which is avialable at huggingface. The dataset was not in the BIO format so model couldn't learn anything from it. We used an html version of dataset available on github and extracted a HuggingFace format dataset from it with BIO tags.
- Fine tunning started from a pre-traind model named "bert-base-arabertv02" and after 3 epoch of training model on the above mentioned dataset (80% splitted to training data and 20% to validation data), reached the following results: (evaluation is done by using compute metrics of python evaluate module. note that precision is overall precision, recall is overall recall and so on.)
- Trained model is available at huggingface and you can use it with the following code snippet:
!pip install transformers
from transformers import pipeline
model_checkpoint = "Montazer/arabert-finetuned-caner"
# Replace this with above latest checkpoint
token_classifier = pipeline(
"token-classification", model=model_checkpoint, aggregation_strategy="simple"
)
s = "ุญูุฏููุซูููุง ุนูุจูุฏ ุงููููููุ ุญูุฏููุซูููู ุนูุจูููุฏู ุงูููููู ุจููู ุนูู
ูุฑู ุงููููููุงุฑููุฑููููุ ุญูุฏููุซูููุง ูููููุณู ุจููู ุฃูุฑูููู
ูุ ุญูุฏููุซูููุง ููุฒููุฏู ุจููู ุฃูุจูู ุฒูููุงุฏูุ ุนููู ุนูุจูุฏู ุงูุฑููุญูู
ููู ุจููู ุฃูุจูู ูููููููุ ููุงูู ุดูููุฏูุชู ุนููููููุง ุฑูุถููู ุงูููููู ุนููููู ููู ุงูุฑููุญูุจูุฉู ููููุดูุฏู ุงููููุงุณู ุฃูููุดูุฏู ุงูููููู ู
ููู ุณูู
ูุนู ุฑูุณูููู ุงูููููู ุตููููู ุงูููููู ุนููููููู ููุณููููู
ู ููููููู ููููู
ู ุบูุฏููุฑู ุฎูู
ูู ู
ููู ููููุชู ู
ูููููุงูู ููุนูููููู ู
ูููููุงูู ููู
ููุง ููุงู
ู ููุดูููุฏู ููุงูู ุนูุจูุฏู ุงูุฑููุญูู
ููู ููููุงู
ู ุงุซูููุง ุนูุดูุฑู ุจูุฏูุฑููููุง ููุฃููููู ุฃูููุธูุฑู ุฅูููู ุฃูุญูุฏูููู
ู ููููุงูููุง ููุดูููุฏู ุฃููููุง ุณูู
ูุนูููุง ุฑูุณูููู ุงูููููู ุตููููู ุงูููููู ุนููููููู ููุณููููู
ู ููููููู ููููู
ู ุบูุฏููุฑู ุฎูู
ูู ุฃูููุณูุชู ุฃูููููู ุจูุงููู
ูุคูู
ูููููู ู
ููู ุฃูููููุณูููู
ู ููุฃูุฒูููุงุฌูู ุฃูู
ููููุงุชูููู
ู ููููููููุง ุจูููู ููุง ุฑูุณูููู ุงูููููู ููุงูู ููู
ููู ููููุชู ู
ูููููุงูู ููุนูููููู ู
ูููููุงูู ุงููููููู
ูู ููุงูู ู
ููู ููุงููุงูู ููุนูุงุฏู ู
ููู ุนูุงุฏูุงูู"
token_classifier(s)
- This model is deployed on a Huggingface space using Gradio. So you can use it online here!
- Downloads last month
- 25
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.