ocr-quality-assessor-unigram-light / configuration_ocrqa.py
emanuelaboros's picture
add models and config
53e37f7
from transformers import PretrainedConfig
import torch
class ImpressoConfig(PretrainedConfig):
model_type = "ocr_qa_assessment"
def __init__(
self,
filename=None,
**kwargs,
):
super().__init__(**kwargs)
self.filename = filename
# Register the configuration with the transformers library
ImpressoConfig.register_for_auto_class()