SentimentAnalysis icon indicating copy to clipboard operation
SentimentAnalysis copied to clipboard

Raising error

Open un-lock-me opened this issue 4 years ago • 0 comments

Hi @hmohebbi thanks for sharing your code. I have a questionI appreciate if you can help me with that. I can run the coder for BOW and TFIDF however for word2vec and Bert keeps raising this error:

    530                 else:
--> 531                     array = np.asarray(array, order=order, dtype=dtype)
    532             except ComplexWarning:
    533                 raise ValueError("Complex data not supported\n"

ValueError: setting an array element with a sequence.```

Do you have any idea of what could be the reason?
I searched the net and they mentioning that this error will arise whenever the list has not been prepared correctly for example [2, [2,3]].
But I could not check where could be wrong.

un-lock-me avatar Oct 12 '21 23:10 un-lock-me