如何获得Alchemy Academy的API密钥?

时间:2017-04-28 14:55:38

标签: android api ibm-watson watson alchemy

如何获取Alchemy Academy的API密钥?感谢

AlchemyLanguage service = new AlchemyLanguage();
service.setApiKey("????");
Map<String,Object> params = new HashMap<String, Object>();
params.put(AlchemyLanguage.TEXT, UserInputSymptoms);
CombinedResults combinedResults = service.getCombinedResults(params).execute();
List<Keyword> relationObject = combinedResults.getKeywords();

for (Keyword relation: relationObject){
    System.out.println(relation.getText());
    extractedSymptoms_List.add(relation.getText());
}

1 个答案:

答案 0 :(得分:1)

如上所述in the developer documentation

                      
  • 登录Bluemix并转到AlchemyAPI service page
  •                   
  • 点击&#34;创建&#34;按钮。
  •                   
  • 点击&#34;服务凭证&#34;来自Bluemix dashboard中AlchemyAPI页面的按钮,以查看您的API密钥。
  •