stanza

NoneType erorr when calling .lower() method on annotated text

NoneType erorr when calling .lower() method on annotated text Question: I have annotated articles in a list (len=488), and I want to apply the .lower() method on the lemmas. I get the following error message AttributeError: ‘NoneType’ object has no attribute ‘lower’. Here’s the code: file = open("Guardian_Syria_text.csv", mode="r", encoding=’utf-8-sig’) data = list(csv.reader(file, delimiter=",")) file.close …

Total answers: 1