def test_classify_text(self): nluClient = NluClient(TokenDemo.tokenClient) response = nluClient.classify_text("XXX去屑洗发水,全国包邮", 1) print(json.dumps(response.res, ensure_ascii=False))
def test_get_domain_sentiment(self): nluClient = NluClient(TokenDemo.tokenClient) response = nluClient.get_domain_sentiment("浑浑噩噩的头脑、失魂落魄的身体…", 0) print(json.dumps(response.res, ensure_ascii=False))
def test_get_intent(self): nluClient = NluClient(TokenDemo.tokenClient) response = nluClient.get_intent("来一首周杰伦的青花瓷","zh") print(json.dumps(response.res, ensure_ascii=False))
def test_get_sentiment(self): nluClient = NluClient(AKSKDemo.akskClient) response = nluClient.get_sentiment("浑浑噩噩的头脑、失魂落魄的身体…") print(json.dumps(response.res, ensure_ascii=False))