Training NLU Model Error

JD51
Tera Contributor

Hi everyone I've noticed none of the NLU utterances are working while testing the bot, and the topic only runs when I select the topic from the "Show Me Everything" button. I'm starting to believe the NLU model isn't working as it's not picking up any phrases. This is happening after we cloned our instance to a temp instance - temp instance is having issues.


So when attempting to train the NLU model I get a generic error (training failed). When I attempt to try the model with utterances I get the following error code:

Exception caught in the predict call - reason: {"status":"failure","exception":"sn_ml.MLServiceUtil.predict(): com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $"}

 

Tried to search around but no luck in resolving the issue yet. Has anyone come across this or have any pointers?

8 REPLIES 8

@JD51  One more suggestion is try to filter the ml_solution with that unique id and see if there is only one active record or more. Then look on the versioning of it and check if it’s latest. If it’s not latest, then make the other record active to true. 


If issue still persists, raise a support case with ServiceNow as per the below link, 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1200085

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

JD51
Tera Contributor

Tried your suggestion above Sujatha but still no fix. Have opened a HI Case.

After diving deeper, coming across this error: 

NSE0016:Failed to execute component train_nlu_onnx : list index out of range

 

Please advise if any known fix for this issue?

@JD51 Did you try to repair the plugin? If not you can try that once and check if it fixes the issue. 

 

Sorry I tried to check on this error ML error NSE0016, unable to get more info on it.

 

Requesting you to connect with ServiceNow support team on the ticket raised and do cascade the fix or comments in this post which might be helpful as a part of learning curve. 

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

shubham55
Tera Contributor

@JD51 , I am facing the same issue, Can you tell me is it resolved?