Error in How-to-use example
I tried to run the given example script but I got the following error:ValueError: The following `model_kwargs` are not used by the model: ['ged_tags'] (note: typos in the generate arguments will also show up in this list)
I'm using Google colab. I did the following:
- pip uninstall transformers
- pip install git+https://github.com/balhafni/arabic-gec.git@bc21aaca789f1a366c05e8b5e111632944886393#egg=transformers
- pip install camel-tools
It's not working. But I found another solution. I copied mbart.py
file from the extended version and imported MBartForConditionalGeneration from there.
Can you provide the error you're getting in the notebook I provided? I made some minor edits and it's fine on my end.
I get No module named 'transformers'
I tried cd ..
and run it again but I got this error: cannot import name 'AutoTokenizer' from 'transformers' (unknown location)
This is mostly likely because you need to restart the runtime of Google Colab notebook after installing our edited version of transformers.
Great. This worked. Thank you.