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

[itn] fix idcard number ends with X #193

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

weimeng23
Copy link
Contributor

weitn --text "我的身份证号是三四零二零三一九三七零幺零幺零五幺X"

char { value: "我" } char { value: "的" } char { value: "身" } char { value: "份" } char { value: "证" } char { value: "号" } char { value: "是" } cardinal { value: "340 203 19370101051" } char { value: "X" }
我的身份证号是340 203 19370101051X

python -m itn --text "我的身份证号是三四零二零三一九三七零幺零幺零五幺X" --overwrite_cache

char { value: "我" } char { value: "的" } char { value: "身" } char { value: "份" } char { value: "证" } char { value: "号" } char { value: "是" } cardinal { value: "34020319370101051X" }
我的身份证号是34020319370101051X

@weimeng23
Copy link
Contributor Author

@xingchensong 大佬看下哈

@xingchensong xingchensong merged commit 28ad0f7 into wenet-e2e:master Apr 9, 2024
1 check passed
@xingchensong
Copy link
Member

不好意思,忘了合了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants