Tensor Flow textum 使用过程中 遇到的问题和解决

时间:2022-10-04 15:31:00

将textsum model的代码下载到本地(没保存到tensorflow安装目录中),按照“How to run"中的指导运行第一步:

文件结构:

./data:
vocab

./textsum:
BUILD data.py
README.md seq2seq_attention.py
batch_reader.py seq2seq_attention_decode.py
beam_search.py seq2seq_attention_model.py
data seq2seq_lib.py

./textsum/data:
data vocab

运行后报错: ERROR: package contains errors: WORKSPACE/textsum.  ERROR: no such package 'external': Error encountered while dealing with the WORKSPACE file: /Users/li/Desktop/models/models-master/WORKSPACE (Is a directory).  INFO: Elapsed time: 0.076s

后,解决方案为在同级目录中建立空文件'WORKSPACE'

再运行后,问题解决。