I am working on a code for aspect extraction. I was getting the following error. can anyone help me resolve this ?
aspect_terms = []
for review in nlp.pipe(df2.review):
chunks = [(chunk.root.text) for chunk in review.noun_chunks if chunk.root.pos_ == 'NOUN']
aspect_terms.append(''.join(chunks))
TypeError: Argument 'string' has incorrect type (expected str, got float).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…