Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

替换 目标字符串 使其 成为汉语拼音 #7

Open
randomwangran opened this issue Feb 17, 2020 · 2 comments
Open

替换 目标字符串 使其 成为汉语拼音 #7

randomwangran opened this issue Feb 17, 2020 · 2 comments

Comments

@randomwangran
Copy link
Collaborator

randomwangran commented Feb 17, 2020

张三用Zhangsan >zhangz≈zhsan。

可行,我稍后写一个脚本,向你展示。

Originally posted by @randomwangran in casdu/huikan#8 (comment)

@randomwangran
Copy link
Collaborator Author

randomwangran commented Feb 17, 2020

  1. 输入是 utf-8编码中文纯文本.

  2. 替换目标字符串为汉语拼音.

例子:

张三 被替换成 Zhangsan

@randomwangran randomwangran changed the title > 抱歉,今天开始上课,所以刚才看到回复。 替换目标字符串为汉语拼音 Feb 17, 2020
@randomwangran randomwangran added this to To do in project-kanban Feb 17, 2020
@randomwangran randomwangran changed the title 替换目标字符串为汉语拼音 替换 目标字符串 使其 成为汉语拼音 Feb 17, 2020
@randomwangran
Copy link
Collaborator Author

如果是简单的字符串替换很简单的。我们知道了 张三 对应 zhangsan 李四 对应 lisi ,只要我们有一个列表就好了。但是如果是对纯文本处理,在没有这个列表的情况下,让程序自己识别文中的名字,就困难了。

@randomwangran randomwangran added the help wanted Extra attention is needed label Dec 1, 2020
randomwangran added a commit to randomwangran/change-chinese-name-to-pinyin that referenced this issue Dec 1, 2020
@randomwangran randomwangran removed the help wanted Extra attention is needed label Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
project-kanban
  
To do
Development

No branches or pull requests

1 participant