一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

IBM Bluemix: Watson Services on Bluemix

 jnstyle 2015-07-15
 Recently I came to know some of the details of IBM Watson, Watson is a Cognitive Computing System, it understands the question we provide to it, and provides us relevant answers based on the context of the question, along with the level of Confidence it has on that answer.  It is also capable of learning with our assistance.

With Watson Question and Answer Service (BETA) available in IBM Bluemix, and with ways to interact with it, it was easy to develop a Sample, please try this sample at AnswerOurQuestion

Currently the topics Healthcare and Travel are exposed here and you could provide relevant questions to obtain answers.  Infact, the Question and Answer service is so good, that you could provide a rating to each answer based on the answer's relevance.

The below code snippet shows us how the interaction with the Watson service takes place.   The input is in the form of a JSONObject.  We provide the question, the number of answers we require through a JSON object.   The username and password required to login can be obtained from the VCAP_SERVICES of the Question and Answer Service.  The dataset is the topic (which is referred to here as the corpus)  to which our question is related.

The answer is a String which is also in JSON format.
 
        JSONObject questionJson = new JSONObject();
        questionJson.put("questionText",question);
        JSONObject evidenceRequest = new JSONObject();
        evidenceRequest.put("items",5);
        questionJson.put("evidenceRequest",evidenceRequest);

        JSONObject postData = new JSONObject();
        postData.put("question",questionJson);

        try {
            Executor executor = Executor.newInstance().auth(username, password);
            URI serviceURI = new URI(baseURL+ "/v1/question/"+dataset).normalize();
            String answersJson = executor.execute(Request.Post(serviceURI)
                .addHeader("Accept", "application/json")
                .addHeader("X-SyncTimeout", "30")
                .bodyString(postData.toString(), ContentType.APPLICATION_JSON)
                ).returnContent().asString();

            List<Map<String, String>> answers = formatAnswers(answersJson);


Further links to Watson and Watson in Bluemix are given below:
Create a natural language question answering system
Change Hello to Watson

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多

    日韩精品综合福利在线观看| 好东西一起分享老鸭窝| 欧美小黄片在线一级观看| 好吊妞视频免费在线观看| 日本午夜福利视频免费观看| 国内九一激情白浆发布| 丰满人妻一二区二区三区av| 区一区二区三中文字幕| 亚洲国产成人爱av在线播放下载| 久草视频这里只是精品| 香蕉尹人视频在线精品| 激情视频在线视频在线视频| 国产一区二区不卡在线播放 | 好吊妞视频免费在线观看| 久久永久免费一区二区| 亚洲av一区二区三区精品| 人人爽夜夜爽夜夜爽精品视频| 欧美日韩黑人免费观看| 一区二区不卡免费观看免费| 成年人黄片大全在线观看| 日本熟妇五十一区二区三区 | 亚洲一级二级三级精品| 五月婷婷亚洲综合一区| 亚洲av成人一区二区三区在线| 日本午夜免费啪视频在线| 人体偷拍一区二区三区| 冬爱琴音一区二区中文字幕| 国产丝袜极品黑色高跟鞋| 中文字幕日韩无套内射| 中日韩美女黄色一级片| 亚洲熟女精品一区二区成人| 国产91色综合久久高清| 成人精品网一区二区三区| 麻豆精品在线一区二区三区| 亚洲精品欧美精品一区三区| 午夜精品久久久免费视频 | 国产精品美女午夜视频| 极品少妇一区二区三区精品视频| 亚洲一区精品二人人爽久久| 激情五月激情婷婷丁香| 久草精品视频精品视频精品 |