cn2an icon indicating copy to clipboard operation
cn2an copied to clipboard

练习时长两年半

Open voyager0003 opened this issue 2 years ago • 1 comments

Describe the bug 练习时长两年半 转换结果不符合预期

To Reproduce Steps to reproduce the behavior:

  1. run following code:
    import cn2an

    result = cn2an.transform(input_sentence)
    print(result)
  1. See error

Expected behavior 练习时长2.5年

Screenshots image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

voyager0003 avatar Sep 13 '23 08:09 voyager0003

你这太高估这个库了 它没有语义理解的能力 根本不知道两年半=‘二‘ ‘半‘ ‘年’ 而且它的半转化完应该就是0.5 不会跟其它的中文数字加在一起 你这不是为难它嘛

Tiangewang0524 avatar Dec 29 '23 17:12 Tiangewang0524