i want to pos-tagging a dataset of .csv file. I create a function which i hope can return the value of the pos-tagged words. But the value that return , instead give a value of the row , it return all of the value on every row. What do i miss? Is it because of the datatype or sum? anyway , here's the code that i wrote
def postagging(text):
pos_emotion = ct.tag_sents([df.emotion])
return pos_emotion
df['pos_emotion'] = df['emotion'].apply(postagging)
df
and here's the result
I'm sorry if i don't explain really clear, my english is not so good.
