class Classifier():
    """
    A class for initializing the specified classifier

    Attributes
    ----------
    SIMPLE_CLASSIFIER : int
        The integer denotation of the SimpleClassifier, used to instantiate classifier
    classifier : LanguageEngine.model
        The class object of the classifier specified
    
    Methods
    -------
    predict(sentence)
        returns the dict containing the original sentence, predicted class, and the slots (entities)
    """

    SIMPLE_CLASSIFIER = 1

    def __init__(self, type=SIMPLE_CLASSIFIER):
        if type is Classifier.SIMPLE_CLASSIFIER:
            from LanguageEngine.models.SimpleClassifier import SimpleClassifier as sc
            self.classifier = sc
    
    def predict(self, sentence, top=1):
        """Does prediction on the given sentence
        Predicts the class of the sentence and the slots (entities)

        Parameters
        ----------
        sentence : str
            The input sentence that needs to be classified
        Returns
        -------
        returnJson : dict
            The dict containing the class, original sentence and the predicted entities of the sentence
        """
        returnJson = self.classifier.predict(sentence.title(), top)
        return returnJson

e5ba6a096aa714e1f93491739188b3e0de932b1c
class Classifier:
    <mask token>
    <mask token>
    <mask token>

    def predict(self, sentence, top=1):
        """Does prediction on the given sentence
        Predicts the class of the sentence and the slots (entities)

        Parameters
        ----------
        sentence : str
            The input sentence that needs to be classified
        Returns
        -------
        returnJson : dict
            The dict containing the class, original sentence and the predicted entities of the sentence
        """
        returnJson = self.classifier.predict(sentence.title(), top)
        return returnJson

class Classifier:
    <mask token>
    <mask token>

    def __init__(self, type=SIMPLE_CLASSIFIER):
        if type is Classifier.SIMPLE_CLASSIFIER:
            from LanguageEngine.models.SimpleClassifier import SimpleClassifier as sc
            self.classifier = sc

    def predict(self, sentence, top=1):
        """Does prediction on the given sentence
        Predicts the class of the sentence and the slots (entities)

        Parameters
        ----------
        sentence : str
            The input sentence that needs to be classified
        Returns
        -------
        returnJson : dict
            The dict containing the class, original sentence and the predicted entities of the sentence
        """
        returnJson = self.classifier.predict(sentence.title(), top)
        return returnJson

class Classifier:
    <mask token>
    SIMPLE_CLASSIFIER = 1

    def __init__(self, type=SIMPLE_CLASSIFIER):
        if type is Classifier.SIMPLE_CLASSIFIER:
            from LanguageEngine.models.SimpleClassifier import SimpleClassifier as sc
            self.classifier = sc

    def predict(self, sentence, top=1):
        """Does prediction on the given sentence
        Predicts the class of the sentence and the slots (entities)

        Parameters
        ----------
        sentence : str
            The input sentence that needs to be classified
        Returns
        -------
        returnJson : dict
            The dict containing the class, original sentence and the predicted entities of the sentence
        """
        returnJson = self.classifier.predict(sentence.title(), top)
        return returnJson

class Classifier:
    """
    A class for initializing the specified classifier

    Attributes
    ----------
    SIMPLE_CLASSIFIER : int
        The integer denotation of the SimpleClassifier, used to instantiate classifier
    classifier : LanguageEngine.model
        The class object of the classifier specified
    
    Methods
    -------
    predict(sentence)
        returns the dict containing the original sentence, predicted class, and the slots (entities)
    """
    SIMPLE_CLASSIFIER = 1

    def __init__(self, type=SIMPLE_CLASSIFIER):
        if type is Classifier.SIMPLE_CLASSIFIER:
            from LanguageEngine.models.SimpleClassifier import SimpleClassifier as sc
            self.classifier = sc

    def predict(self, sentence, top=1):
        """Does prediction on the given sentence
        Predicts the class of the sentence and the slots (entities)

        Parameters
        ----------
        sentence : str
            The input sentence that needs to be classified
        Returns
        -------
        returnJson : dict
            The dict containing the class, original sentence and the predicted entities of the sentence
        """
        returnJson = self.classifier.predict(sentence.title(), top)
        return returnJson

class Classifier():
    """
    A class for initializing the specified classifier

    Attributes
    ----------
    SIMPLE_CLASSIFIER : int
        The integer denotation of the SimpleClassifier, used to instantiate classifier
    classifier : LanguageEngine.model
        The class object of the classifier specified
    
    Methods
    -------
    predict(sentence)
        returns the dict containing the original sentence, predicted class, and the slots (entities)
    """

    SIMPLE_CLASSIFIER = 1

    def __init__(self, type=SIMPLE_CLASSIFIER):
        if type is Classifier.SIMPLE_CLASSIFIER:
            from LanguageEngine.models.SimpleClassifier import SimpleClassifier as sc
            self.classifier = sc
    
    def predict(self, sentence, top=1):
        """Does prediction on the given sentence
        Predicts the class of the sentence and the slots (entities)

        Parameters
        ----------
        sentence : str
            The input sentence that needs to be classified
        Returns
        -------
        returnJson : dict
            The dict containing the class, original sentence and the predicted entities of the sentence
        """
        returnJson = self.classifier.predict(sentence.title(), top)
        return returnJson
