Hello,
For my research, I need to run a Python script that can analyze the syntactic complexity of the texts. The script essentially takes an input text file and provides a set of complexity indices in an output text file. It is written to be run through a command line in MAC; however, this option is not working for me, as I keep getting errors. I tried to use IDLE to run the script, but then I take an error message as input and output file names are given as sys.argv[1] and sys.argv[2] in the script. How can I replace these two with the hard-coded version of the input and output file in the script? I attached the script to this post, I would really appreciate it if someone can offer me a solution for this.
For my research, I need to run a Python script that can analyze the syntactic complexity of the texts. The script essentially takes an input text file and provides a set of complexity indices in an output text file. It is written to be run through a command line in MAC; however, this option is not working for me, as I keep getting errors. I tried to use IDLE to run the script, but then I take an error message as input and output file names are given as sys.argv[1] and sys.argv[2] in the script. How can I replace these two with the hard-coded version of the input and output file in the script? I attached the script to this post, I would really appreciate it if someone can offer me a solution for this.
Attached Files