豆福传

最后更新于 2023年09月11日

分类: 动漫 地区: 大陆 年份:2017 

状态: 更新至第HD高清集

类型:动画 

导演:邹燚 

主演:陈佩斯/李立群/季冠霖/付博文/张磊/李立宏/赵毅/

又名:吃饭睡觉打豆豆大电影/豆仙/Tofu

更新至第HD高清集

2017/大陆/动画

豆瓣评分:5.7分

豆福传剧情简介

"; //text="天涯无处可寻,我的迷失天堂!"; text=strResulta; try { text=text.replaceAll(" ", ""); //创建一个接口 //HttpUtils.HttpResponse//得到对象 //text 需要分词的内容 cut_threshold:如果设置了此参数,会返回所有概率不低于cut_threshold的词语,如果没设则默认是0.5 HttpUtils.HttpResponse response = HttpUtils.sendGet("http://www.datatang.com/webapi/cloud/sensitive/words", "text=" text "&apikey=" apiKey );// System.out.println(response);//结果在控制台输出 //创建一个如下的对象 // {"errno": 0, "data": [{"word": "迷失天堂", "score": 0.999279, "tag": "不良事件名称", "sentiment": "negative"}, {"word": "天堂", "score": 0.985262, "tag": "词语", "sentiment": "neutral"}, {"word": "我的", "score": 0.999288, "tag": "我称", "sentiment": "neutral"}, {"word": "天涯", "score": 0.982305, "tag": "词语", "sentiment": "neutral"}, {"word": "迷失", "score": 0.975591, "tag": "不良事件名称", "sentiment": "negative"}]} JSONObject json = JSONObject.fromObject(response.getResponseBody()); //得到一个对象 System.out.println("response data:" response.getResponseBody());//结果在控制台获取 String dataArray = json.getString("data"); JSONArray jsonarray = JSONArray.fromObject(dataArray); //获取第一个对象 JSONObject JsonObject = (JSONObject)jsonarray.get(0); System.out.println("JsonObject:" JsonObject.toString()); System.out.println("errno:" json.getString("errno")); //词语 String word = JsonObject.getString("word"); System.out.println("word:" word); //概率 String score = JsonObject.getString("score"); System.out.println("score:" score); //情感极性,每一个词语都有结果 String sentiment = JsonObject.getString("sentiment"); System.out.println("sentiment:" sentiment); //词性 String tag = JsonObject.getString("tag"); System.out.println("tag:" tag); } catch (Exception e) { e.printStackTrace(); } }}

猜你喜欢

芭比之拇指姑娘

5.0 2009/加拿大/美国/动画,家庭

狼与香辛料 第二季

4.0 2009/日本/剧情,动画,日本动漫

摩尔庄园第一季

9.0 2011/大陆/喜剧,动画,儿童,奇幻,冒险

混沌之子

2.0 2017/日本/剧情,动画,悬疑

绝代双骄

4.0 2022/大陆/动作,动画,武侠

魔角侦探

6.0 2010/大陆/喜剧,科幻,动画,悬疑,儿童,冒险