{"id":21203734,"url":"https://github.com/bl33h/cykalgorithm","last_synced_at":"2025-03-14T22:44:29.074Z","repository":{"id":204525991,"uuid":"703692896","full_name":"bl33h/cykAlgorithm","owner":"bl33h","description":"This Python CYK parser demonstrates sentence parsing with a CFG in CNF.","archived":false,"fork":false,"pushed_at":"2023-11-02T06:14:25.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T15:15:29.050Z","etag":null,"topics":["chomsky","cnf-grammer","cyk-algorithm","cyk-parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bl33h.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}},"created_at":"2023-10-11T18:09:16.000Z","updated_at":"2023-10-31T04:43:14.000Z","dependencies_parsed_at":"2023-11-02T07:25:31.855Z","dependency_job_id":null,"html_url":"https://github.com/bl33h/cykAlgorithm","commit_stats":null,"previous_names":["bl33h/cykalgorithm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FcykAlgorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FcykAlgorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FcykAlgorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FcykAlgorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bl33h","download_url":"https://codeload.github.com/bl33h/cykAlgorithm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658177,"owners_count":20326464,"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":["chomsky","cnf-grammer","cyk-algorithm","cyk-parser"],"created_at":"2024-11-20T20:26:28.164Z","updated_at":"2025-03-14T22:44:28.616Z","avatar_url":"https://github.com/bl33h.png","language":"Python","readme":"# cykAlgorithm\nThis CYK (Cocke-Younger-Kasami) parser is a Python program that demonstrates parsing a sentence using a Context-Free Grammar (CFG) represented in Chomsky Normal Form (CNF). It utilizes the provided Python files and a JSON configuration file to perform the parsing. The CNF conversion is done by the `CNFConverter` class in `chomsky.py`, and the CYK parsing is performed in `cyk.py`.\n\n## Files\n\n- `main.py`: The main Python script that loads the CFG from the `input.json` file, converts it to CNF, and then performs CYK parsing on a sample sentence.\n- `chomsky.py`: The Python module responsible for the CNF conversion of the provided CFG.\n- `cyk.py`: The Python module that implements the CYK parsing algorithm.\n- `input.json`: The JSON configuration file containing the CFG in CNF format.\n\n## How to Use\nTo run the CYK parser for the given CFG, follow these steps:\n1. Clone this repository to your local machine:\n\n   ```bash\n   git clone https://github.com/bl33h/CYK-Parser\n   cd src\n   python main.py\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl33h%2Fcykalgorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbl33h%2Fcykalgorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl33h%2Fcykalgorithm/lists"}