13 lines
315 B
Python
13 lines
315 B
Python
from abc import ABC, abstractmethod
|
|
from argparse import ArgumentParser
|
|
|
|
class BaseTransformersCLICommand(ABC):
|
|
@staticmethod
|
|
@abstractmethod
|
|
def register_subcommand(parser: ArgumentParser):
|
|
raise NotImplementedError()
|
|
|
|
@abstractmethod
|
|
def run(self):
|
|
raise NotImplementedError()
|