File size: 946 Bytes
584e717 9c13bf7 6b9c9ce aa24cb4 6b9c9ce aa24cb4 6b9c9ce aa24cb4 6b9c9ce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
---
license: agpl-3.0
language:
- en
- cop
---
# How To Use This Model
## Sahidic Example With No Confidence Score
```
from transformers import pipeline
pipe = pipeline(model="megalaa/coptic-english-translator", trust_remote_code=True)
output = pipe("ⲓⲏⲥⲟⲩⲥ ⲡⲉⲭⲣⲓⲥⲧⲟⲥ")
print(output)
# {'translation': 'Jesus Christ,'}
```
## Parameters
By default, this models translates from Sahidic Coptic to English.
Use `from_bohairic=True` if you are translating from Bohairic Coptic to English.
Additionally, use `output_confidence=True` if you want to output the model confidence.
## Bohairic Example With Confidence Score
```
from transformers import pipeline
pipe = pipeline(model="megalaa/coptic-english-translator", trust_remote_code=True)
output = pipe("ⲓⲏⲥ ⲡⲭⲥ", from_bohairic=True, output_confidence=True)
print(output)
# {'translation': 'Jesus Christ.', 'confidence': 0.7219238269534208}
```
|