Я хочу обучить свой набор данных с использованием textblob.Поэтому я реализовал код, который
from textblob.classifiers import NaiveBayesClassifier
with open('train.csv', 'r') as fp:
cl = NaiveBayesClassifier(fp)
Но я получаю сообщение об ошибке,
raise FormatError('Could not automatically detect format for the given '
textblob.exceptions.FormatError: Could not automatically detect format for the given data source.
Я не смог найти решение для этой ошибки.Кто-нибудь может предложить какой-нибудь способ решить это?(Мой набор данных будет похож)
review1, category1
"review2", category2
