Skip to content

Commit

Permalink
Update docs/source/ar/tasks/masked_language_modeling.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 17, 2025
1 parent 812c20e commit c3a9dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/ar/tasks/masked_language_modeling.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Perplexity: 8.76
>>> text = "The Milky Way is a <mask> galaxy."
```

أبسط طريقة لتجربة نموذجك المعدل للاستدلال هي استخدامه في [`pipeline`]. قم بإنشاء مثيل لـ `pipeline` لملء الفراغ مع نموذجك، ومرر نصك إليه. إذا أردت، يمكنك استخدام معلمة `top_k` لتحديد عدد التنبؤات التي تريد إرجاعها:
أبسط طريقة لتجربة نموذجك المعدل للاستدلال هي استخدامه في [`pipeline`]. قم بإنشاء كائن `pipeline` لملء الفراغ مع نموذجك، ومرر نصك إليه. إذا أردت، يمكنك استخدام معلمة `top_k` لتحديد عدد التنبؤات التي تريد إرجاعها:

```py
>>> from transformers import pipeline
Expand Down

0 comments on commit c3a9dc4

Please sign in to comment.