{"id":18434450,"url":"https://github.com/kaiyux/ctc-decoder","last_synced_at":"2025-04-15T01:43:13.534Z","repository":{"id":165907573,"uuid":"347580521","full_name":"kaiyux/CTC-decoder","owner":"kaiyux","description":"A cpp reimplementation for CTC decoder","archived":false,"fork":false,"pushed_at":"2021-03-15T11:43:49.000Z","size":197,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T13:44:28.345Z","etag":null,"topics":["cpp","ctc","decoder","ocr","speech"],"latest_commit_sha":null,"homepage":"","language":"C++","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/kaiyux.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-03-14T08:18:23.000Z","updated_at":"2023-12-06T05:45:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"44129687-e9a7-49a8-b15b-537d1ddfbcba","html_url":"https://github.com/kaiyux/CTC-decoder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaiyux%2FCTC-decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaiyux%2FCTC-decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaiyux%2FCTC-decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaiyux%2FCTC-decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaiyux","download_url":"https://codeload.github.com/kaiyux/CTC-decoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991514,"owners_count":21194893,"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":["cpp","ctc","decoder","ocr","speech"],"created_at":"2024-11-06T06:04:01.160Z","updated_at":"2025-04-15T01:43:13.529Z","avatar_url":"https://github.com/kaiyux.png","language":"C++","readme":"# CTC-Decoder\n## A cpp reimplementation\nThis repo is a cpp reimplementation for `Awni Hannun`'s version of CTC decoder. It runs 4.5x faster in my MacBook Pro \u0026 No extra dependency is needed.\n## Usage\nFirstly\n```bash\nmkdir cmake-build-release\ncd cmake-build-release\n\n/path/to/cmake -DCMAKE_BUILD_TYPE=Release -G \"CodeBlocks - Unix Makefiles\" /path/to/CTC-decoder\n\n/path/to/cmake --build /path/to/CTC-decoder/cmake-build-release --target ctcdecoder -- -j 4\n```\nThen scripts in Python\n```Python\nimport sys\nsys.path.append('/path/to/cmake-build-release')\nimport ctcdecoder\n\nprobs = np.random.rand(time_len, output_dim)\nprobs = probs / np.sum(probs, axis=1, keepdims=True)\nprobs = np.log(probs)\nlabels, score = ctcdecoder.decode(probs, 10, 0)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaiyux%2Fctc-decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaiyux%2Fctc-decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaiyux%2Fctc-decoder/lists"}