Skip to content

TypeError: only integer scalar arrays can be converted to a scalar index #75

@DaemonicCao

Description

@DaemonicCao

Traceback (most recent call last):
File "D:/seq2seq-couplet-master/couplet.py", line 23, in
m.train(5000000)
File "D:\seq2seq-couplet-master\model.py", line 164, in train
bleu_score = self.eval(step)
File "D:\seq2seq-couplet-master\model.py", line 194, in eval
self.eval_reader.vocabs).split(' ')
File "D:\seq2seq-couplet-master\reader.py", line 25, in decode_text
word = vocabs[idx]
TypeError: only integer scalar arrays can be converted to a scalar index

进程已结束,退出代码1

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions