Announcing the Global SNUG Board of Directors. Learn more here
on 02-28-2021 09:20 PM
// New Quebec code to train and publish model
NLUStudioTrainer.trainModel(<nlu id>);
NLUStudioPublisher.publishModel(<nlu id>);
where <nlu id> is sys_id of NLU model present in system.
Or you can use the UI
And out of curiosity, can you elaborate on the use case for using these methods?
Hi,
I am able to Train the Model successfully but the Publish button is grayed out.. Any idea why it is not allowing me to publish?
Thanks in advance.
Nikita
Hi Nikita,
did you solve the problem. I'm interessted in your solution because i also can't publish. I think it's because of protection policy.
Thanks in advance
Nils
Hello Nikita,
Please review KB0952640: NLU Model training throws an error without an error message and creates a record in table [ml_solution] for the trained NLU Model solution. After training the NLU Model, the "Publish" button is greyed out and you cannot publish the NLU Model.
Follow the steps in the Workaround section to determine and delete the duplicate record in table [ml_solution] that causes the Publish button to be greyed out.
You will need to be logged into the ServiceNow Support web site to see this KB article.
Best regards,
Brian