2

This is the specific code I am trying to run:

LANGPAIR=EE
python script.py corpus_$LANGPAIR_train

I get the following error:

IOError: [Errno 2] No such file or directory: 'corpus_'

The variable LANGPAIR is supposed to a command-line input and I need to plug it into the python argument. Please suggest me how to resolve this. Thanks!

1 Answer 1

4

The shell is looking for a variable called LANGPAIR_train. Invoke your script like this:

python script.pyt corpus_${LANGPAIR}_train
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.