3
$\begingroup$

I was doing Lemmatisation but I got the above error. I think it's because my data isn't in string form, is that correct? If so, which part of my data isn't in string form?

Image of code for Lemmatisation Image of error code for Lemmatisation

This is my data source: https://www.kaggle.com/c/fake-news/data

$\endgroup$
0
$\begingroup$

You are applying that function to a column in a panda's dataframe. Double check the datatype of the column:

lemmatised_df['label'].dtype
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.