Reputation: 1
Hi I have never used python and I am trying to run session_eval_main.py file that processes 3 text files and outputs the result. but when I try to run it in the interpreter I get the following error:
Traceback <most recent call last>:
File "<stdin>", line 1, in <module>
NameError: name 'session_eval_main' is not defined
Can anyone help me here.
Thanks
Upvotes: 0
Views: 549
Reputation: 27812
Just do this:
python session_eval_main.py
I'm assuming that you are referring to this script. If this assumption is true, then you can add flags:
Usage:
$ python session_eval_main.py
--qrel_file=qrels
--mapping_file=topics_sessions
--run_file=runs
--dup_file=dups
--per_session=0
--cutoff=10
--write_to_file=0
If you need help with what each flag does, run this:
$ python session_eval_main.py --help
Upvotes: 1