We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
console.log( pinyin("他说:“钱还是要还的。”", { segment: true, group: true, }) ); // 返回 [ [ 'tā' ], [ 'shuō' ], [ ':“' ], [ 'qián' ], [ 'háishì' ], [ 'yào' ], [ 'huán' ], [ 'de' ], [ '。”' ] ] // 如何获得 [ [ '他' ], [ '说' ], [ ':“' ], [ '钱' ], [ '还是' ], [ '要' ], [ '还' ], [ '的' ], [ '。”' ] ]
The text was updated successfully, but these errors were encountered:
在 class NodePinyin 的 convert 方法把 phrases 也 return 出来就好了
Sorry, something went wrong.
这个在现有数据结构下无法完成,应该只能新增 API 来完成了。
我编译的时候发现本工程用的是nodejieba,这个结巴就是分词的。虽然我没法用,但是对你肯定有帮助。你直接用结巴就行。
hotoo
No branches or pull requests
The text was updated successfully, but these errors were encountered: