INNER CODE UNIT · Python
ClassifierABC
shibing624/pytextclassifier · pytextclassifier/base_classifier.py:52
class ClassifierABC:
"""
Abstract class for classifier
"""
def train(self, data_list_or_path, model_dir: str, **kwargs):
raise NotImplementedError('train method not implemented.')
def predict(self, sentences: list):
raise NotImplementedError('predict method not implemented.')
def evaluate_model(self, **kwargs):
raise NotImplementedError('evaluate_model method not implemented.')
def evaluate(self, **kwargs):
raise NotImplementedError('evaluate method not implemented.')
def load_model(self):