{"id":21493512,"url":"https://github.com/alienkevin/pydips","last_synced_at":"2026-01-22T18:05:40.209Z","repository":{"id":256891772,"uuid":"856370736","full_name":"AlienKevin/pydips","owner":"AlienKevin","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-01T07:41:34.000Z","size":3707,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T05:24:00.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AlienKevin.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,"zenodo":null}},"created_at":"2024-09-12T13:20:36.000Z","updated_at":"2025-05-01T07:41:38.000Z","dependencies_parsed_at":"2024-09-13T16:59:42.328Z","dependency_job_id":"1bd9bfb5-c5eb-466d-a21d-896f3bff9d3c","html_url":"https://github.com/AlienKevin/pydips","commit_stats":null,"previous_names":["alienkevin/pydips"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlienKevin/pydips","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fpydips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fpydips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fpydips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fpydips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlienKevin","download_url":"https://codeload.github.com/AlienKevin/pydips/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Fpydips/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28667881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-23T15:43:10.393Z","updated_at":"2026-01-22T18:05:40.186Z","avatar_url":"https://github.com/AlienKevin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pydips\n\nMulti-criteria Cantonese segmentation with **d**ashes, **i**ntermediates, **p**ipes, and **s**paces.\n\nNote: This package is still in beta, there might be breaking changes in the future.\nCurrently supports macOS (Apple Silicon) and Linux (x86_64 with avx, avx2, and fma instructions)\n\nSee https://github.com/AlienKevin/dips for more details on the segmentation model.\n\n## Install\n\n```sh\npip install pydips\n```\n\n## Usage\n\n```python\n\u003e\u003e\u003e from pydips import BertModel\n\u003e\u003e\u003e model = BertModel()\n\n\u003e\u003e\u003e model.cut('阿張先生嗰時好nice㗎', mode='coarse')\n['阿張先生', '嗰時', '好', 'nice', '㗎']\n\n\u003e\u003e\u003e model.cut('阿張先生嗰時好nice㗎', mode='fine')\n['阿', '張', '先生', '嗰', '時', '好', 'nice', '㗎']\n\n\u003e\u003e\u003e model.cut('阿張先生嗰時好nice㗎', mode='dips_str')\n'阿-張|先生 嗰-時 好 nice 㗎'\n\n\u003e\u003e\u003e model.cut('阿張先生嗰時好nice㗎', mode='dips')\n['S', 'D', 'P', 'I', 'S', 'D', 'S', 'S', 'I', 'I', 'I', 'S']\n```\n\n## Release\n\n1. Bump version in `pyproject.toml`\n2. Clear the exising `dist` folder: `rm -rf dist/`\n3. Buid: `python -m build`\n4. Upload to TestPyPI: `twine upload -r testpypi dist/*`\n5. Test TestPyPI version locally: `pip install -i https://test.pypi.org/simple/ pydips`\n6. Upload to PyPI: `twine upload dist/*`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienkevin%2Fpydips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falienkevin%2Fpydips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienkevin%2Fpydips/lists"}