{"id":19824787,"url":"https://github.com/stephangeorg/token-stats","last_synced_at":"2025-07-29T05:02:41.000Z","repository":{"id":75414542,"uuid":"406738466","full_name":"StephanGeorg/token-stats","owner":"StephanGeorg","description":"Generate statistics for tokens or compounds in text.","archived":false,"fork":false,"pushed_at":"2021-09-16T14:01:49.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T08:51:22.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/StephanGeorg.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":"2021-09-15T11:39:49.000Z","updated_at":"2021-09-16T14:01:51.000Z","dependencies_parsed_at":"2023-06-06T10:31:42.089Z","dependency_job_id":null,"html_url":"https://github.com/StephanGeorg/token-stats","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"80dddcf5285b5af1b872dcd2bc3b70f720ff7801"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Ftoken-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Ftoken-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Ftoken-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Ftoken-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephanGeorg","download_url":"https://codeload.github.com/StephanGeorg/token-stats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241181146,"owners_count":19923376,"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-12T11:05:54.852Z","updated_at":"2025-02-28T16:25:47.309Z","avatar_url":"https://github.com/StephanGeorg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# token-stats\n\nGenerate statistical information of the availability of tokens or compounds in texts.\n\n## Installation\n\n```\ngit clone git@github.com:StephanGeorg/token-stats.git\ncd token-stats\nnpm i\n```\nDownload models from [nnsplit repo](https://github.com/bminixhofer/nnsplit/tree/main/models).\n\n## Usage\n\n```bash\n\u003e npm run cli -- \u003cpath/to/input.csv\u003e \u003c/path/to/output.csv\u003e -m \u003c/path/to/model.onnx\u003e [-s] [-t] [-c]\n```\n\n### Options\n\nParameter    | Default      | Description\n------------ | ------------ | -------------\nInput        | Required     | Path to input file\nOutput       | Required     | Path to output file\n-m           | Required     | Path to the model file (onnx) \n-s           | 0            | Index of desired sentence in text\n-t           |              | Index of desired token in sentence, -1 for last or empty \n-c           |              | Index of desired constituent in token, -1 for last or empty\n\n## Example Output\n\n```csv\nname,count\nstraße,126369\nweg,32322\nplatz,8271\nberg,8177\ngasse,6808\nring,3577\nfeld,3516\nkamp,3476\nallee,2763\nmühle,2576\nbrücke,2518\nbach,2482\ngarten,2346\ngraben,2265\ngrund,1665\nwiese,1661\ndamm,1557\npfad,1524\nbusch,1472\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephangeorg%2Ftoken-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephangeorg%2Ftoken-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephangeorg%2Ftoken-stats/lists"}