clovaai / FocusSeq2Seq

[EMNLP 2019] Mixture Content Selection for Diverse Sequence Generation (Question Generation / Abstractive Summarization)
https://arxiv.org/abs/1909.01953
MIT License
113 stars 20 forks source link

'chmod' is not recognized as an internal or external command !!! #3

Closed riturajkunwar closed 5 years ago

riturajkunwar commented 5 years ago

On executing the command: python train.py --task=QG --model=NQG --load_glove=True --feature_rich --data=squad --rnn=GRU --dec_hidden_size=512 --dropout=0.5 --batch_size=64 --eval_batch_size=64 --use_focus=True --n_mixture=3 --decoding=greedy

I get following error:

'chmod' is not recognized as an internal or external command, operable program or batch file. Traceback (most recent call last): File "train.py", line 22, in from utils.tensor_utils import repeat File "C:\Users\Emergent Tech HP\my_projects\NQG_python3.6\FocusSeq2Seq\utils__init.py", line 1, in from .rouge import File "C:\Users\Emergent Tech HP\my_projects\NQG_python3.6\FocusSeq2Seq\utils\rouge__init__.py", line 1, in from .perl_rouge import File "C:\Users\Emergent Tech HP\my_projects\NQG_python3.6\FocusSeq2Seq\utils\rouge\perlrouge.py", line 15, in = Rouge155(rouge_dir, log_level=0) TypeError: init__() got an unexpected keyword argument 'log_level'

Am I getting this error because I am using windows machine ??

j-min commented 5 years ago

Yes chmod is not a Windows command.

Btw, the error message below seems a separate issue. Rouge155 class from pip version pyrouge does not have log_level keyword argument as here. I just updated the pip install command in a new commit. You can pip install git+git://github.com/bheinzerling/pyrouge

j-min commented 5 years ago

If you just want to run QG model, you can comment out here.

riturajkunwar commented 5 years ago

Thanks for your help .... Its hard to make it work on windows machine.... So moved on to Ubuntu machine !!

Geoffrey-lab commented 1 year ago

You could also try the cloud-based Jupyter Notebook environment, like Google Colab that allows you to execute Unix-like commands, including 'chmod,' within code cells by prefixing them with '!' (ex: !chmod).