Counts the number of instances of words in a text document.
Project description
pycount_mi
Counts the number of instances of words in a text document.
Installation
$ pip install pycount_mi
Usage
pycount_mi
can be used to count words in a text file and plot results
as follows:
from pycount_mi.pycount_mi import count_words
from pycounts.plotting import plot_words
import matplotlib.pyplot as plt
file_path = "test.txt" # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
pycount_mi
was created by Mukund Iyer. It is licensed under the terms of the MIT license.
Credits
pycount_mi
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pycount_mi-0.1.0.tar.gz
.
File metadata
- Download URL: pycount_mi-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 906461bb6c77df16a44a452889925235860a3aa18dd4c95b6b5ff842c3c22ead |
|
MD5 | eff71aca8952c288a9d257063cbe2471 |
|
BLAKE2b-256 | 0c71d8202981f243d2ae852f1257cf5f8d3edb20d941efcb6683aeb7bdad4d11 |
File details
Details for the file pycount_mi-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycount_mi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f8f6f846d84a344b0ad1c2fd02c6700cab244e6b2fccf3dcd00045f2fcf2add |
|
MD5 | 4f6719b3ec4129065786f117cae4a384 |
|
BLAKE2b-256 | 014a485cc8504a4b596977c4a3ba7d8912a95828de6de91dc839e1c1d7f9d29c |