Closed PeterXiaoGuo closed 6 years ago
When I try to pick a small amount of reviews, test_reviews = reviews[35000:35005], it gives a default as below:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
how could I fix it? thank u!
`--------------------------------------------------------------------------- ValueError Traceback (most recent call last)
remove '[....]' helps, like this way:
norm_test_reviews = tn.normalize_corpus(test_reviews,text_lemmatization=False, stopword_removal=False,text_lower_case=False)
When I try to pick a small amount of reviews, test_reviews = reviews[35000:35005], it gives a default as below:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
how could I fix it? thank u!
`--------------------------------------------------------------------------- ValueError Traceback (most recent call last)