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}
Downloads last month
13
Safetensors
Model size
77.1M params
Tensor type
F32
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.