Closed YuHengKit closed 1 year ago
text='Apa kena tah shopee problem'
for word in text.split():
print(word)
#print(word[-1])
if len(word) < 2:
print('ok')
if word[-1].isdigit() and not word[-2].isdigit():
repeat = int(word[-1])
word = word[:-1]
else:
repeat = 1
if repeat < 1:
repeat = 1
print(repeat)
try to reproduce the function manually but it seems no issue.
What is ur malaya version?
It is 5.0.
will look into ASAP, got other stuffs need to be done first
tried abstractive normalization? https://malaya.readthedocs.io/en/stable/load-normalizer-abstractive.html
Will look into this. Just a side question, do you know any English version of this abstractive normalization? As I need to do some comparison.
Thank you
Just a quick update, the issue seem ok now.
Hi, face the error while executing the following text and code
`
`
`
`