Returns classifier from classifier.pkl

def classifier(self):
        """ Returns classifier from classifier.pkl """        

        clf = pickle.load(open(os.path.join(self.repopath, 'classifier.pkl')))
        return clf