mwz commited on
Commit
6e1276e
1 Parent(s): 987eaba

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -7
README.md CHANGED
@@ -45,19 +45,19 @@ It achieves the following results on the evaluation set:
45
  - Task: Sentiment Classification (Positive/Negative)
46
 
47
  ## Training Procedure
48
- 1. The model was fine-tuned using the transformers library and the Trainer class from Hugging Face. The training process involved the following steps:
49
 
50
- 2. Tokenization: The input Urdu text was tokenized using the RobertaTokenizerFast from the "urduhack/roberta-urdu-small" pre-trained model. The texts were padded and truncated to a maximum length of 256 tokens.
51
 
52
- 3. Model Architecture: The "urduhack/roberta-urdu-small" pre-trained model was loaded as the base model for sequence classification using the RobertaForSequenceClassification class.
53
 
54
- 4. Training Arguments: The training arguments were set, including the number of training epochs, batch size, learning rate, evaluation strategy, logging strategy, and more.
55
 
56
- 5. Training: The model was trained on the training dataset using the Trainer class. The training process was performed with gradient-based optimization techniques to minimize the cross-entropy loss between predicted and actual sentiment labels.
57
 
58
- 6. Evaluation: After each epoch, the model was evaluated on the validation dataset to monitor its performance. The evaluation results, including training loss and validation loss, were logged for analysis.
59
 
60
- 7. Fine-Tuning: The model parameters were fine-tuned during the training process to optimize its performance on the IMDb Urdu movie reviews sentiment analysis task.
61
 
62
  ### Training hyperparameters
63
 
 
45
  - Task: Sentiment Classification (Positive/Negative)
46
 
47
  ## Training Procedure
48
+ The model was fine-tuned using the transformers library and the Trainer class from Hugging Face. The training process involved the following steps:
49
 
50
+ 1. Tokenization: The input Urdu text was tokenized using the RobertaTokenizerFast from the "urduhack/roberta-urdu-small" pre-trained model. The texts were padded and truncated to a maximum length of 256 tokens.
51
 
52
+ 2. Model Architecture: The "urduhack/roberta-urdu-small" pre-trained model was loaded as the base model for sequence classification using the RobertaForSequenceClassification class.
53
 
54
+ 3. Training Arguments: The training arguments were set, including the number of training epochs, batch size, learning rate, evaluation strategy, logging strategy, and more.
55
 
56
+ 4. Training: The model was trained on the training dataset using the Trainer class. The training process was performed with gradient-based optimization techniques to minimize the cross-entropy loss between predicted and actual sentiment labels.
57
 
58
+ 5. Evaluation: After each epoch, the model was evaluated on the validation dataset to monitor its performance. The evaluation results, including training loss and validation loss, were logged for analysis.
59
 
60
+ 6. Fine-Tuning: The model parameters were fine-tuned during the training process to optimize its performance on the IMDb Urdu movie reviews sentiment analysis task.
61
 
62
  ### Training hyperparameters
63