Skip to content

Raising error #1

Open
Open
@un-lock-me

Description

@un-lock-me

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions