如何获取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());
}
答案 0 :(得分:1)
如上所述in the developer documentation