def predict(self, X):
x = X<EOL>if not isinstance(X, list):<EOL><INDENT>x = [X]<EOL><DEDENT>y = self.estimator.predict(x)<EOL>y = [item[<NUM_LIT:0>] for item in y]<EOL>y = [self._remove_prefix(label) for label in y]<EOL>if not isinstance(X, list):<EOL><INDENT>y = y[<NUM_LIT:0>]<EOL><DEDENT>return y<EOL>
In order to obtain the most likely label for a list of text

        Parameters
        ----------
        X : list of string
            Raw texts

        Returns
        -------
        C : list of string
            List labels