AttributeError: 'list' object has no attribute 'apply'

After Entering the following Command:

onmt-main --config data.yml --auto_config infer --features_file src.test predictions_file predict.txt

For more details, I am running on Google Colab. While I trained on My PC there was no such kind of problem. After training on Colab I am facing the Problem.

Can you post more information?

  • The OpenNMT-tf version
  • The model you are using
  • The content of data.yml
  • The full output logs

There is actually a typo in your command line: predictions_file should be --predictions_file

Sorry. For this kind of silly mistake… :frowning_face: