public static WatsonCompleteConversationTraining CreateInstance(LexiconWorkspace workspace) { WatsonCompleteConversationTraining instance = CreateInstance <WatsonCompleteConversationTraining>(); instance.workspace = workspace; return(instance); }
public void MonitorWatsonConversationTraining(LexiconWorkspace workspace) { workspace.WatsonConversationManager.IsTraining = true; WatsonSyncQueue syncQueue = ScriptableObject.CreateInstance <WatsonSyncQueue>(); syncQueue.workspace = workspace; syncQueue.Enqueue(WatsonWorkspaceStatus.CreateInstance(workspace)); syncQueue.OnCompleteAction = WatsonCompleteConversationTraining.CreateInstance(workspace); syncQueue.OnQueueFinished += CleanUp; syncQueue.Process(); watsonConversationSyncQueues.Add(syncQueue); }