Skip to content

This program takes a text file as input and analyzes it in terms of number of times each word appears in a text. It takes advantage of visualizing results using self-crafted histogram function as well as built-in matplotlib capabilities.

Notifications You must be signed in to change notification settings

vstadn/text_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

You can use file with words that you don't want to be taken into account while analyzing text (stop words option). 
Additionally, this code is capable of scraping file from url and analyzing it as well (url option).

usage: text_analysis.py [-h] -i INPUT [-s STOPWORDS] [-a ALGORITHM] [-u URL]
                        [-p PLOT]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input file that needs to be analyzed(required).
  -s STOPWORDS, --stopwords STOPWORDS
                        File with the list of stop words(optional).
  -u URL, --url URL     URL or not
  -p PLOT, --plot PLOT  yes if you want to plot it

About

This program takes a text file as input and analyzes it in terms of number of times each word appears in a text. It takes advantage of visualizing results using self-crafted histogram function as well as built-in matplotlib capabilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages