Text Classification
Transformers
PyTorch
TensorFlow
TensorBoard
Arabic
English
bert
BERT
Text Classification
relation
text-embeddings-inference
Run this model with HF Jobs
Run ychenNLP/arabic-relation-extraction 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/ychenNLP/arabic-relation-extraction. 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/ychenNLP/arabic-relation-extraction 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 ychenNLP/arabic-relation-extraction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ychenNLP/arabic-relation-extraction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ychenNLP/arabic-relation-extraction")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ychenNLP/arabic-relation-extraction") model = AutoModelForSequenceClassification.from_pretrained("ychenNLP/arabic-relation-extraction", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files2 unmodified lines345678994 unmodified lines1041051061071081091101111121131141151161171181191201211221231242 unmodified lines- BERT- Text Classification- relationlanguage: Arabiclicense: mitdatasets:- ACE200594 unmodified linesfor rel in re_ner_output["relation"]:print('{}--{}:{}'.format(rel['arg1']['word'], rel['arg2']['word'], rel['relation_type']['label']))Sentence: قال وزير العدل التركي بكير بوزداغ إن أنقرة تريد 12 مشتبهاً بهم من فنلندا و 21 من السويد====Entity====وزير--PERالعدل--ORGالتركي--GPEبكير بوزداغ--PERانقرة--GPEمشتبها بهم--PERفنلندا--GPE21--PERالسويد--GPE====Relation====وزير--العدل:ORG-AFFمشتبها بهم--فنلندا:PHYS21--السويد:PHYS```### BibTeX entry and citation info2 unmodified lines345678994 unmodified lines1041051061071081091101111121131141151161171181191201211222 unmodified lines- BERT- Text Classification- relationlanguage: Arabic, Englishlicense: mitdatasets:- ACE200594 unmodified linesfor rel in re_ner_output["relation"]:print('{}--{}:{}'.format(rel['arg1']['word'], rel['arg2']['word'], rel['relation_type']['label']))Sentence: ويتزامن ذلك مع اجتماع بايدن مع قادة الدول الأعضاء في الناتو في قمة موسعة في العاصمة الإسبانية، مدريد.====Entity====بايدن--PERقادة--PERالدول--GPEالناتو--ORGالعاصمة--GPEالاسبانية--GPEمدريد--GPE====Relation====قادة--الدول:ORG-AFFالدول--الناتو:ORG-AFFالعاصمة--الاسبانية:PART-WHOLE```### BibTeX entry and citation info
README.md+12-14