I have a CSV file I am trying to train on a classifier. I am using TextBlob. This is my code that does it.
with open('train.csv', 'r') as fp:
cl = NaiveBayesClassifier(fp, format='csv', feature_extractor= get_features)
It however does not seem to work. Is this the correct way to train a classifier using a CSV file?