I should train the model to determine gender of a name. I made the list like
[['Friedtic', 'Homer'], ['Alice', 'Miranda']]
I tried
classifier = nltk.NaiveBayesClassifier.train(train_data)
but there is the error
ValueError: too many values to unpack (expected 2)