microsoft / ProphetNet

A research project for natural language generation, containing the official implementations by MSRA NLC team.
MIT License
686 stars 109 forks source link

Question Generation: translation_prophetnet error #12

Open gireek opened 4 years ago

gireek commented 4 years ago

fairseq-generate: error: argument --task: invalid choice: 'translation_prophetnet' (choose from 'translation', 'translation_lev', 'translation_from_pretrained_xlm', 'multilingual_translation', 'semisupervised_translation', 'audio_pretraining', 'denoising', 'legacy_masked_lm', 'translation_moe', 'sentence_prediction', 'masked_lm', 'sentence_ranking', 'multilingual_masked_lm', 'language_modeling', 'cross_lingual_lm')

While in the code given it says to use translation_prophetnet while inferencing it does not work giving the error above. You had mentioned in another issue of providing a COLAB notebook. Please do as it will help us alot as Question Generation given the limited instructions is extremely complicated for newbies like me.

Thanks!!

https://colab.research.google.com/drive/1i8orWVxr1NRam612foQFsTt051Y3SUdo?usp=sharing This is my colab so far. The last cell has the given error.

ShoubhikBanerjee commented 4 years ago

your notebook is not opening, could you give the access?

ShoubhikBanerjee commented 4 years ago

@gireek I guess that your --user-dir . should actually be : --user-dir <path to src/prophetnet>

As it seems that you have cloned it, and you are in Prophetnet Dir.

In the readme file, the user directory is "prophetnet" which is inside "src" folder.

If it doesn't work. Please let me know.

ShoubhikBanerjee commented 4 years ago

@gireek , is it solved?

gireek commented 4 years ago

Nope

ShoubhikBanerjee commented 4 years ago

What issue are you facing now?