Sunday, September 18, 2016

AssertionError: Empty filelist.

When you run `textsum` TensorFlow model as follows:

bazel-bin/textsum/seq2seq_attention \
  --mode=train \
  --article_key=article \
  --abstract_key=abstract \
  --data_path=data/training-* \
  --vocab_path=data/vocab \
  --log_root=textsum/log_root \
  --train_dir=textsum/log_root/train

you might encounter the following error:

AssertionError: Empty filelist.

Replace `--data_path=data/training-*` with `--data_path=data/data` as follows:

bazel-bin/textsum/seq2seq_attention \
  --mode=train \
  --article_key=article \
  --abstract_key=abstract \
  --data_path=data/data \
  --vocab_path=data/vocab \
  --log_root=textsum/log_root \
  --train_dir=textsum/log_root/train

Reference:
https://github.com/tensorflow/models/issues/370

No comments:

Post a Comment