def __init__(self, *args, **kwargs):
     if TEXTCLASSIFIER_DATA_FILE is None:
         raise ValueError('Classifier data file is not set')
     self.data_handle = open(TEXTCLASSIFIER_DATA_FILE, 'r')
     kwargs['format'] = 'json'
     NaiveBayesClassifier.__init__(self, self.data_handle, *args, **kwargs)