# Path: shorttext/utils/classification_exceptions.py
# class NotImplementedException(Exception):
#     def __init__(self):
#         self.message = 'Method not implemented.'


from abc import ABC, abstractmethod
from shorttext.utils.classification_exceptions import NotImplementedException




class SpellCorrector(ABC):
    """ Base class for all spell corrector.

    This class is not implemented; this is an "abstract class."

    """
    @abstractmethod
    def train(self, text):
        """ Train the spell corrector with the given corpus.

        :param text: training corpus
        :type text: str
        """

# Path: shorttext/utils/classification_exceptions.py
# class NotImplementedException(Exception):
#     def __init__(self):
#         self.message = 'Method not implemented.'


# Path: shorttext/spell/basespellcorrector.py
from abc import ABC, abstractmethod
from shorttext.utils.classification_exceptions import NotImplementedException





class SpellCorrector(ABC):
    """ Base class for all spell corrector.

    This class is not implemented; this is an "abstract class."

    """
    @abstractmethod
    def train(self, text):
        """ Train the spell corrector with the given corpus.

        :param text: training corpus
        :type text: str
        """

        raise NotImplementedException()