Open phamkhactu opened 1 year ago
@phamkhactu did you happen to fix this issue? I have the same issue so I would appreciate that you could share a solution for this
Thank you for visiting, there are two solutions for this:
Hotfix:
Could you try to write multiple sentences: https://github.com/v-nhandt21/Vinorm/blob/4a191ff79e8920c9293da1d8e1fdb985608b6576/vinorm/__init__.py#L10
def TTSnorm(texts, punc = False, unknown = True, lower = True, rule = False ):
A=imp.find_module('vinorm')[1]
#print(A)
I=A+"/input.txt"
with open(I,"w+") as fw:
for text in texts:
fw.write(text + "\n")
O=A+"/output.txt"
with open(O,"r") as fr:
texts_norm=fr.read().splitlines()
return texts_norm
Feel free to comment for more discussion :))
Thanks for your great work,
when I using norm with multi process with pool: I get error:
I hop that you can check again it to make your package become supper start.
Best regards, Tu