{"id":18639268,"url":"https://github.com/skyguy126/python-frequencyanalysis","last_synced_at":"2025-07-06T00:03:36.571Z","repository":{"id":72156183,"uuid":"58983024","full_name":"skyguy126/Python-FrequencyAnalysis","owner":"skyguy126","description":"A simple script to prove Zipf's law.","archived":false,"fork":false,"pushed_at":"2016-09-28T20:51:32.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T00:01:48.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skyguy126.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-17T02:16:34.000Z","updated_at":"2016-09-16T03:21:41.000Z","dependencies_parsed_at":"2023-09-16T20:36:50.123Z","dependency_job_id":null,"html_url":"https://github.com/skyguy126/Python-FrequencyAnalysis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skyguy126/Python-FrequencyAnalysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyguy126%2FPython-FrequencyAnalysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyguy126%2FPython-FrequencyAnalysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyguy126%2FPython-FrequencyAnalysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyguy126%2FPython-FrequencyAnalysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyguy126","download_url":"https://codeload.github.com/skyguy126/Python-FrequencyAnalysis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyguy126%2FPython-FrequencyAnalysis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263826627,"owners_count":23516781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T05:47:55.279Z","updated_at":"2025-07-06T00:03:36.520Z","avatar_url":"https://github.com/skyguy126.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Python_FrequencyAnalysis**\n\n**A simple script to prove Zipf's law.**\n\n## Usage\n\n### Step 1: Setup\n\nClone this repository and create two directories inside the `src` folder named `books` and `temp`.\n\n### Step 2: Download\n\nThis will download books in plain text format (will automatically strip headers) from Project Gutenberg.\n\n```python\npython Downloader.py\n```\n\nSpecify the number of passes (1 pass is around 20-50 books).\n\nPress a key at anytime to exit (NOTE: Program will only exit once current pass is complete).\n\nThe files will be downloaded to the `temp` directory.\n\n*Requires BeautifulSoup.*\n\n#### Options\n\nYou may edit the offset for Project Gutenberg in the `Downloader_Config.ini` (This value is auto-updated).\n\n### Step 3: Analyze\n\nThis will generate a set of confidence intervals.\n\n```python\npython Analyze_Multicore.py\n```\n\nMake sure specified books are in the `books` directory.\n\nOutput will be saved to `conf.txt`.\n\n#### Options\n\n```python\n'''\nNumber of books to sample for one confidence interval.\nMake sure value is lower than number of books in the directory.\n'''\nNUM_OF_SAMPLES = 300\n\n'''\nNumber of words to include in the data set for generating the regression line.\nSet to -1 to use all words (not recommended), 1000 works best.\n'''\nNUM_TOP_WORDS = 1000\n\n'''\nNumber of confidence intervals to generate.\n'''\nNUM_INTERVALS = 100\n\n'''\nNumber of processes.\n'''\nNUM_PROCESSES = 8\n\n'''\nAlpha value for confidence interval.\n0.05 = 95% confidence\n'''\nALPHA_VALUE = 0.05\n```\n\n*Requires statsmodels.api, numpy, matplotlib.*\n\n### Presentation\n[Google Slides](https://docs.google.com/presentation/d/17swH8eZlLc9Ui8GqVKJfDptICacmxzMZ78Bg92nCtw4/edit?usp=sharing)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyguy126%2Fpython-frequencyanalysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyguy126%2Fpython-frequencyanalysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyguy126%2Fpython-frequencyanalysis/lists"}