Calculate word occurences in txt files inside a given folder.
Project description
SIMPLE FREQUENCY COUNTER
Calculate word occurences in txt files inside a given folder.
Usage
from frequency_counter.counter import FrequenciesGenerator
fg = FrequenciesGenerator('my_test_folder')
# print occurences of the word 'example' in 'text1.txt'
fg.get_frequency('example', 'text1.txt')
# print occurences of the word 'example' in all files
fg.get_frequency('example')
# print similarity between two file depending on word overlap
fg.calculate_similarity('text2.txt','text1.txt' )
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_frequency_counter-0.0.1.tar.gz.
File metadata
- Download URL: simple_frequency_counter-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c62e34812c6d70f153d13c622586c74b20048d8cd6e4c57003cf9bdaf1f8dc3
|
|
| MD5 |
b0815b54e08f287ae6d8628d71ed4019
|
|
| BLAKE2b-256 |
26d4b3874643f0300a2a19505956534f1f3ec35f63cb3d5d1686884da6c17158
|
File details
Details for the file simple_frequency_counter-0.0.1-py3-none-any.whl.
File metadata
- Download URL: simple_frequency_counter-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deb2d7b2b3410647f7f7746530dface4921e13a67ed9c8ca781f74bfe2a4712d
|
|
| MD5 |
590f1e469cafbfcb58425238ada7dfdf
|
|
| BLAKE2b-256 |
f9e7b030bb4f652bdfd474693f8919277e235ff503b11eecc6b9a177b5148452
|