Ilkinism's picture
Upload README.md with huggingface_hub
4b170f1 verified
metadata
{}

text classification

This model is a fine-tuned version of XLM-RoBERTa (XLM-R) on a text classification dataset in Azerbaijani. XLM-RoBERTa is a powerful multilingual model that supports 100+ languages. Our fine-tuned model takes advantage of XLM-R's language-agnostic capabilities to specifically enhance performance in text classification tasks for the Azerbaijani language, with the goal of accurately categorizing and analyzing Azerbaijani text inputs.

How to Use

This model can be loaded and used for prediction using the Hugging Face Transformers library. Below is an example code snippet in Python:

from transformers import MBartForSequenceClassification, MBartTokenizer
from transformers import pipeline

model_path = r"/home/user/Desktop/Synthetic data/models/model_bart_saved"
model = MBartForSequenceClassification.from_pretrained(model_path)
tokenizer = MBartTokenizer.from_pretrained(model_path)
nlp = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
print(nlp("Yaşadığımız ölkədə xeyirxahlıq etmək əsas keyfiyyət göstəricilərindən biridir"))

Example 1:

from transformers import MBartForSequenceClassification, MBartTokenizer
from transformers import pipeline

model_path = r"/home/user/Desktop/Synthetic data/models/model_bart_saved"
model = MBartForSequenceClassification.from_pretrained(model_path)
tokenizer = MBartTokenizer.from_pretrained(model_path)
nlp = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
print(nlp("Yaşadığımız ölkədə xeyirxahlıq etmək əsas keyfiyyət göstəricilərindən biridir"))

Result 1:

[{'label': 'positive', 'score': 0.9997604489326477}]

Limitations and Bias

For text classification tasks, the model's performance may be limited due to its fine-tuning for just one epoch. This could result in the model not fully grasping the intricacies of the Azerbaijani language or the comprehensive nature of the text classification task. Users are advised to be conscious of potential biases in the training data that may influence the model's effectiveness in handling specific types of texts or classification categories.

Ethical Considerations

I strongly agree with the statement. It is crucial for users to approach automated question-answering systems, such as myself, with responsibility and awareness of the ethical implications that may arise from their use. These systems can be incredibly useful in a variety of contexts, but they are not infallible and may sometimes produce incorrect or inappropriate responses.

In sensitive or high-stakes contexts, it is essential to exercise caution and verify the information provided by the system. Users should also be mindful of the potential consequences of relying on automated systems and consider seeking guidance from human experts when necessary.

Furthermore, users should be aware of the limitations of automated question-answering systems and avoid using them to make important decisions without proper human oversight. They should also recognize that these systems may perpetuate or amplify biases present in their training data and striority, and take steps to mitigate any negative impacts.

In summary, while automated question-answering systems can be valuable tools, they should be used responsibly, ethically, and with an understanding of their limitations and potential risks.

Citation

Please cite this model as follows:

    author       = {Alas Development Center},
    title        = text classification,
    year         = 2024,
    url          = https://huggingface.co/alasdevcenter/text classification,
    doi          = 10.57967/hf/2027,
    publisher    = Hugging Face