sinhala-nlp/NSINA
Viewer • Updated • 487k • 60 • 5
How to use vector2003/sinhala-ocr-postcorrection-byt5 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="vector2003/sinhala-ocr-postcorrection-byt5") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("vector2003/sinhala-ocr-postcorrection-byt5", device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("vector2003/sinhala-ocr-postcorrection-byt5", device_map="auto")Base model
google/byt5-small
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="vector2003/sinhala-ocr-postcorrection-byt5")