Script provides zipf Graph of a given text file (graph of the number of occurrences of given words).
Python 3.9.10
All required packages in requirements.txt file.
To install all required packages, type:
pip install -r requirements.txt
in the terminal.
- Copy text you need to process to the processFile.txt file and save it.
- Set start_index and amount_of_words_to_display variables accordingly.
- Run the script.
- After successful execution, 2 files should be created: number_of_word_instances_list.txt and words_list.txt and graph of selected range of words should appear.
- When a graph of selected range becomes visible, you can type y in the terminal to see next chunk of the same size, or type n to close the graph and quit the program.
Allows you to quickly check the frequency of words in a given file.
Script project contains also a sample .txt
file for processing.
Distributed under the MIT License. See LICENSE file for more information.