I have deployed my Flask App ( NLP model ) on Heroku. I was basically a price prediction model where some columns were in Japanese where I applied NLP + Nagisa Library for tokenization and some columns were numerical data. I pickled vectorizers and the model and Finally added them to my Flask API. But after deployment when I added the values in the frontend and clicked on Predict button, the result is not getting displayed. This is the exact error I am facing.
The exact code of Tokenizer_jp is :
def tokenize_jp(doc):
doc = nagisa.tagging(doc)
return doc.words
I am not able to figure out how to fix this?