AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

To replace Korean text number to digit number
 
 

Hi,

I’m trying to replace Korean text numbers to digit numbers, but there are two problems.

1. A carrage return occurs in every line in the private1.txt like this;

( twenty
20 )
( twenty-one
21 )
( twenty-two
22 )

Doesn’t it matter? Or is there anything wrong with me?


2. I inserted some Korean text numbers into the LIVEDATA/substitutes.txt but the Korean text numbers seem not to be replaced. (I looked into by the command prepare and word.)

I attached the log file if it may help.

Is there good way to replace Korean text number to digit number?


Thank you very much.

File Attachments
log-textNumber.txt  (File Size: 1KB - Downloads: 91)
 

 
  [ # 1 ]

I misunderstood the syntax of the replace:

(wrong) replace: (twenty 20)
(right)  replace: twenty 20

i.e. replace: doesn’t need the parenthesis.

Thanks a lot.

 

 
  login or register to react