Calculate word counts in a text file!
Project description
pycounts_ml
Calculate word counts in a text file!
Installation
$ pip install pycounts_ml
Usage
pycounts_ml
can be used to count words in a text file and plot results
as follows:
from pycounts_ml.pycounts_ml import count_words
from pycounts_ml.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
pycounts_ml
was created by Mel Liow. It is licensed under the terms
of the MIT license.
Credits
pycounts_ml
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
pycounts_ml-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file pycounts_ml-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_ml-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 | e1e6c488819d05b7338eaeea7f0ef581732b3cdaaad0289361ae51d19c569bf2 |
|
MD5 | 8c469b484484cfe0ac2f6e0d92991d02 |
|
BLAKE2b-256 | deaebbaa74f3a03b20ac078d08b44409fa904cc9678728048ec3851097746612 |
File details
Details for the file pycounts_ml-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_ml-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 | 4730d5919ae4f3dc198db67cfcc7dd8cc3820408673195accf412312b9b2df69 |
|
MD5 | 1197177cce2c33bd08324ead3274cbb5 |
|
BLAKE2b-256 | ed04ffe80a096bfda08da53bbb1793ed3aff08707fd7e6fbc5a5cc4f83f4b435 |