2017-10-17 77 views

回答

2

要從UI內跟蹤狀態,請打開「試用」面板。它會顯示「沃森正在訓練」。完成後將停止。

enter image description here

編程方式,您可以使用工作區API查詢工作區。例如在Python中。

from watson_developer_cloud import ConversationV1 

url = "https://gateway-fra.watsonplatform.net/conversation/api" 
username = "USERNAME" 
password = "PASSWORD" 

workspace_id = '2d5e7dd4-19fe-4ab3-9c3e-f2eff48c9ca4' 

conv = ConversationV1(
     username=username, 
     password=password, 
     version='2017-05-26', 
     url=url 
     ) 

response = conv.get_workspace(workspace_id=workspace, export=False) 

print('Status is: {}'.format(response['status']))