Please follow the steps below:
1- At first, open the VerySimpleCode.py in an IDE or open the code inside the command prompt in windows or terminal in linux.
2- Set values of the variables inside the Parameter Adjustment section.
3- Put your input text files inside the mentioned folders or use the default .txt files.
* Note: The existing contents are encoded and compressed.
4- For the first time set the value of the Continue variable to True.
5- Run the code using the IDE or using the following command inside cmd or terminal:
python VerySimpleCode.py
* Note: to run this script, you should run it when the root is set to the root path of scripts.
For example: if you put the file inside Drive C your root inside the terminal should be c:\Sample Code and Data\Simplified\ and then run the command. To do this you should first set the environment variable for python.
6- You can now access the results inside the Final Results folder (Word vectors for that specific formula type).
7- From now on, you can rerun the code and omit the repeating steps by setting the Continue value to False.
* Note: the results for different formula types won't rewrite on each other and a different .txt file will be created so that you can have the results next to each other.
* Note: if Continue==False: all the files inside the following folders will be deleted: Cooccurrences, Clusters, Similarities, and Final Results