Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_frequency_counter-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_frequency_counter-0.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file simple_frequency_counter-0.0.1.tar.gz.

File metadata

File hashes

Hashes for simple_frequency_counter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9c62e34812c6d70f153d13c622586c74b20048d8cd6e4c57003cf9bdaf1f8dc3
MD5 b0815b54e08f287ae6d8628d71ed4019
BLAKE2b-256 26d4b3874643f0300a2a19505956534f1f3ec35f63cb3d5d1686884da6c17158

See more details on using hashes here.

File details

Details for the file simple_frequency_counter-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_frequency_counter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 deb2d7b2b3410647f7f7746530dface4921e13a67ed9c8ca781f74bfe2a4712d
MD5 590f1e469cafbfcb58425238ada7dfdf
BLAKE2b-256 f9e7b030bb4f652bdfd474693f8919277e235ff503b11eecc6b9a177b5148452

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page