{"id":15620457,"url":"https://github.com/akb89/counterix","last_synced_at":"2025-04-28T13:41:38.008Z","repository":{"id":62564981,"uuid":"244698523","full_name":"akb89/counterix","owner":"akb89","description":"Generating count-based Distributional Semantic Models","archived":false,"fork":false,"pushed_at":"2023-07-06T22:13:22.000Z","size":46,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T17:09:16.812Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akb89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-03T17:25:47.000Z","updated_at":"2021-11-03T15:18:44.000Z","dependencies_parsed_at":"2024-10-22T20:17:05.770Z","dependency_job_id":null,"html_url":"https://github.com/akb89/counterix","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":0.07407407407407407,"last_synced_commit":"76578369e7329a5d0c8e2ab0ae9f9af034010b22"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akb89%2Fcounterix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akb89%2Fcounterix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akb89%2Fcounterix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akb89%2Fcounterix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akb89","download_url":"https://codeload.github.com/akb89/counterix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251321283,"owners_count":21570707,"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-10-03T09:01:22.252Z","updated_at":"2025-04-28T13:41:37.981Z","avatar_url":"https://github.com/akb89.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# counterix\n[![GitHub release][release-image]][release-url]\n[![PyPI release][pypi-image]][pypi-url]\n[![Build][build-image]][build-url]\n[![MIT License][license-image]][license-url]\n\n\n[release-image]:https://img.shields.io/github/release/akb89/counterix.svg?style=flat-square\n[release-url]:https://github.com/akb89/counterix/releases/latest\n[pypi-image]:https://img.shields.io/pypi/v/counterix.svg?style=flat-square\n[pypi-url]:https://pypi.org/project/counterix/\n[build-image]:https://img.shields.io/github/workflow/status/akb89/counterix/CI?style=flat-square\n[build-url]:https://github.com/akb89/counterix/actions?query=workflow%3ACI\n[license-image]:http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square\n[license-url]:LICENSE.txt\n\nA small toolkit to generate count-based PPMI-weighed SVD Distributional Semantic Models.\n\n## Install\n```shell\npip install counterix\n```\n\nor, after a git clone:\n```shell\npython3 setup.py install\n```\n\n## Use\n\n### Generate\nTo generate a raw count matrix from a tokenized corpus, run:\n```shell\ncounterix generate \\\n  --corpus /abs/path/to/corpus/txt/file \\\n  --min-count frequency_threshold \\\n  --win-size window_size\n```\n\nIf the `--output` parameter is not set, the output files will be saved to the corpus directory.\n\n### Weigh\nTo weigh a raw count model with PPMI, run:\n```\ncounterix weigh --model /abs/path/to/raw/count/npz/model\n```\n\n### SVD\nTo apply SVD on a PPMI-weighed model, with k=10000, run:\n```\ncounterix svd \\\n  --model /abs/path/to/ppmi/npz/model \\\n  --dim 10000\n```\n\nTo control the number of threads used during SVD, run counterix with `env OMP_NUM_THREADS=1`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakb89%2Fcounterix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakb89%2Fcounterix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakb89%2Fcounterix/lists"}