Files
HuggingFace_transformer/transformers/commands/__init__.py
2019-12-04 00:52:23 -05:00

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()