Skip to content

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() #8

Description

@HZM5201314

运行得到def word2vec_train(combined):
print("111111111111")
model = Word2Vec(size=vocab_dim,
min_count=n_exposures,
window=window_size,
workers=cpu_count,
iter=n_iterations)
model.build_vocab(combined) # input: list
model.train(combined)
到这里的时候出现:ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
怎么回事??????

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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