Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行app.py时报错 #144

Closed
ADY4000 opened this issue Sep 9, 2022 · 1 comment
Closed

运行app.py时报错 #144

ADY4000 opened this issue Sep 9, 2022 · 1 comment

Comments

@ADY4000
Copy link

ADY4000 commented Sep 9, 2022

报错信息:
Traceback (most recent call last): File "E:\python机器学习资料\chatbot-master\Chatbot-tensowflow2.0\Seq2seqchatbot\web\app.py", line 6, in <module> import execute File "E:\python机器学习资料\chatbot-master\Chatbot-tensowflow2.0\Seq2seqchatbot\execute.py", line 62, in <module> input_tensor, input_token, target_tensor, target_token = read_data(gConfig['seq_data']) File "E:\python机器学习资料\chatbot-master\Chatbot-tensowflow2.0\Seq2seqchatbot\execute.py", line 47, in read_data target_tensor = tf.keras.preprocessing.sequence.pad_sequences(target_tensor, maxlen=max_length_tar, File "D:\conda\lib\site-packages\keras\utils\data_utils.py", line 1041, in pad_sequences trunc = np.asarray(trunc, dtype=dtype) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

target_tensor type为list,内容一大串

@ADY4000 ADY4000 closed this as completed Feb 4, 2023
@wenChingzhou
Copy link

怎么解决的呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants