Skip to content

Commit

Permalink
Update docs/source/ar/tasks/sequence_classification.md
Browse files Browse the repository at this point in the history
Co-authored-by: Abdullah Mohammed <554032+abodacs@users.noreply.github.com>
  • Loading branch information
AhmedAlmaghz and abodacs authored Jan 18, 2025
1 parent 35215d0 commit 752ee94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/ar/tasks/sequence_classification.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pip install transformers datasets evaluate accelerate
tokenized_imdb = imdb.map(preprocess_function, batched=True)
```

الآن قم بإنشاء دفعة من الأمثلة باستخدام [`DataCollatorWithPadding`]. من الأكثر كفاءة *الحشو الديناميكي* للجمل إلى الطول الأطول في دفعة أثناء التجميع، بدلاً من حشو كل مجموعة البيانات إلى الطول الأقصى.
الآن قم بإنشاء دفعة من الأمثلة باستخدام [`DataCollatorWithPadding`]. الأكثر كفاءة هو استخدام الحشو الديناميكي لجعل الجمل متساوية في الطول داخل كل دفعة، بدلًا من حشو كامل البيانات إلى الحد الأقصى للطول.

<frameworkcontent>
<pt>
Expand Down

0 comments on commit 752ee94

Please sign in to comment.