Excuse me Sir, I tried to train using my native language and it worked. But when I try thE model after push to huggingface, the result is like this
from deepmultilingualpunctuation import PunctuationModel
model = PunctuationModel(model="candra/punctuatorid")
text = "Nama saya candra Saya kerja di Sleman Yogyakarta"
result = model.restore_punctuation(text)
labeled_words = model.predict(text)
print(result)
print(labeled_words)
NamasayacandraSayakerjadiSlemanYogyakarta
[['N', 'LABEL_0', 0.92213744], ['a', 'LABEL_0', 0.88981384], ['m', 'LABEL_0', 0.82173777], ['a', 'LABEL_0', 0.8361282], [' ', 'LABEL_0', 0.8732005], ['s', 'LABEL_0', 0.87928015], ['a', 'LABEL_0', 0.8990202], ['y', 'LABEL_0', 0.8346261], ['a', 'LABEL_0', 0.8432487], [' ', 'LABEL_0', 0.87998515], ['c', 'LABEL_0', 0.838636], ['a', 'LABEL_0', 0.90778375], ['n', 'LABEL_0', 0.81340396], ['d', 'LABEL_0', 0.88555896], ['r', 'LABEL_0', 0.8849649], ['a', 'LABEL_0', 0.84936905], [' ', 'LABEL_0', 0.8485689], ['S', 'LABEL_0', 0.913819], ['a', 'LABEL_0', 0.9147434], ['y', 'LABEL_0', 0.84088546], ['a', 'LABEL_0', 0.84060436], [' ', 'LABEL_0', 0.87031215], ['k', 'LABEL_0', 0.8766002], ['e', 'LABEL_0', 0.8716935], ['r', 'LABEL_0', 0.8410843], ['j', 'LABEL_0', 0.8109067], ['a', 'LABEL_0', 0.87118506], [' ', 'LABEL_0', 0.88127214], ['d', 'LABEL_0', 0.88965994], ['i', 'LABEL_0', 0.8115389], [' ', 'LABEL_0', 0.83680826], ['S', 'LABEL_0', 0.89733636], ['l', 'LABEL_0', 0.82763183], ['e', 'LABEL_0', 0.86441326], ['m', 'LABEL_0', 0.78594685], ['a', 'LABEL_0', 0.8554612], ['n', 'LABEL_0', 0.7310551], [' ', 'LABEL_0', 0.86217946], ['Y', 'LABEL_0', 0.8851356], ['o', 'LABEL_0', 0.8768013], ['g', 'LABEL_0', 0.8701269], ['y', 'LABEL_0', 0.8675242], ['a', 'LABEL_0', 0.86862904], ['k', 'LABEL_0', 0.8152715], ['a', 'LABEL_0', 0.8852416], ['r', 'LABEL_0', 0.8483949], ['t', 'LABEL_0', 0.8477803], ['a', 'LABEL_0', 0.8666682]]
I'm having trouble analyzing the error. Any suggestions? Thank you Sir