- revert pipeline and serve logic to pre figure detection data for image extraction changes: figure detection data as input not supported for now
16 lines
323 B
Python
16 lines
323 B
Python
import abc
|
|
|
|
from image_prediction.transformer.transformer import Transformer
|
|
|
|
|
|
class Formatter(Transformer):
|
|
@abc.abstractmethod
|
|
def format(self, obj):
|
|
raise NotImplementedError
|
|
|
|
def transform(self, obj):
|
|
raise NotImplementedError()
|
|
|
|
def __call__(self, obj):
|
|
return self.format(obj)
|