Too many spaces?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- localization
Research direction
Start by reading the package's documented conversion options and the conversion path used after Stanford segmentation. Check how spaces are handled in the input and generated output, then define completion as preserving existing spaces without adding spaces around each converted character; add or update coverage for that behavior.
Written by the indexing model from the issue text.
Description
I am still learning Chinese, so I typically take a text, use the Stanford segmenter, and then convert to pinyin.
The conversion adds an unnecessary space before and after each character, which means words identified in segmentation are broken up.
I would like it to not add spaces, but also to not change spaces already in the input. If the package contains a way to do this, I couldn't find it in the documentation.
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 628
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozillazg/python-pinyin
-
“乡长”读音错误 Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
mozillazg/python-pinyin#369 ·
-
U+5535读音错误 Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
mozillazg/python-pinyin#368 ·
-
U+25948读音错误 Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozillazg/python-pinyin#367 ·
-
威妥瑪拼音ai變ei Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
mozillazg/python-pinyin#365 · 1 comment ·
-
[FEAT REQ] 允许导入输入法词库 Opendiscuss
Difficulty 5/5 Over a week Newbie friendliness 35/100
mozillazg/python-pinyin#362 · 3 comments ·
All issues in mozillazg/python-pinyin
Similar issues
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100