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  simple_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.2.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.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for simple_frequency_counter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 deac852ec627b948ab9932c9e5a130aae9506cb60f4613fd4321435c328a4904
MD5 1553b7a07cd885aac068cdc5b309f159
BLAKE2b-256 b8f794f21bd11f61ca93d6ae05f55756675ba4e9e73a05930bac2a9cda4f8512

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_frequency_counter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8ccb8ba5670906516701398e1f2caadd5f0be1cf001bedfb46283a53dc20d38
MD5 2363e86253c539923146bd29d8e3b280
BLAKE2b-256 b5c9d68c2bf4f3bc7127ead5ecf194b5db6790d6b1450f976d21566b3bdcfa48

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