WeTextProcessing icon indicating copy to clipboard operation
WeTextProcessing copied to clipboard

tn 新增 億~千億

Open bensonbs opened this issue 8 months ago • 0 comments

tn/chinese/rules/cardinal.py

        # 10001111, 1001111, 101111, 11111, 10111, 10011, 10001, 10000
        ten_thousand = ((thousand | hundred | ten | digit) + insert('萬') +
                        (thousand
                         | (zero + rmpunct + hundred)
                         | (rmzero + rmpunct + zero + tens)
                         | (rmzero + rmpunct + rmzero + zero + digit)
                         | rmzero**4))

        # add hundred_million
        hundred_million = 

bensonbs avatar Jun 04 '24 04:06 bensonbs