@dooy
2018-04-23T07:08:05.000000Z
字数 4436
阅读 325
批改网
提交URL
POST https://www.pigai.org/index.php?c=ajax&a=postSave&_display=json
参数说明
参数 | 必选 | 说明 |
---|---|---|
utContent | 是 | 作文内容 |
rid | 是 | 作文号 |
utTitle | 否 | 作文标题 |
eid | 否 | 已经写作的eid |
bzold | 否 | 备注 |
bz | 否 | 备注相关 |
- | - | 未登录情况下可以增加以下行列数据 |
uid/tuid | 是 | 用户UID/或者是临时表中的用户ID uid 跟tuid取其中一个 |
time | 是 | 时间 |
usign | 是 | 签名: md5(uid/tuid+rid+time+约定秘钥) 具体算法可以跟我要 |
name | 否 | 姓名 |
number | 否 | 学号 |
class | 否 | 班级 |
样例
utTitle=good&bzold=&bz=&rid=1027334&eid=&type=0&utype=&gao=1&uncheck=&tiku_id=0&engine=&fromCode=348728&
utContent=English%2520is%2520a%2520internationaly%2520language%2520which%2520becomes%2520importantly%2520for%2520modern%2520world.%250A%250A%2520In%2520China%252C%2520English%2520is%2520took%2520to%2520be%2520a%2520foreigh%2520language%2520which%2520many%2520student%2520choosed%2520to%2520learn.%2520They%2520begin%2520to%2520studying%2520English%2520at%2520a%2520early%2520age.%2520They%2520use%2520at%2520least%2520one%2520hour%2520to%2520learn%2520English%2520knowledges%2520a%2520day.%2520Even%2520kids%2520in%2520kindergarten%2520have%2520begun%2520learning%2520simple%2520words.%2520That's%2520a%2520good%2520phenomenan%252C%2520for%2520English%2520is%2520essential%2520nowadays.%250A%250A%2520In%2520addition%2520to%252C%2520some%2520people%2520think%2520English%2520is%2520superior%2520than%2520Chinese.%2520In%2520me%2520opinion%252C%2520though%2520English%2520is%2520for%2520great%2520significance%252C%2520but%2520English%2520is%2520after%2520all%2520a%2520foreign%2520language.%2520it%2520is%2520hard%2520for%2520people%2520to%2520see%2520eye%2520to%2520eye.%2520English%2520do%2520help%2520us%2520read%2520English%2520original%2520works%252C%2520but%2520Chinese%2520helps%2520us%2520learn%2520a%2520true%2520China.%2520Only%2520by%2520characters%2520Chinese%2520literature%2520can%2520send%2520off%2520its%2520brilliance.%2520Learning%2520a%2520country's%2520culture%252C%2520especial%2520its%2520classic%2520culture%252C%2520the%2520first%2520thing%2520is%2520learn%2520its%2520language.%2520Because%2520of%2520we%2520are%2520Chinese%252C%2520why%2520do%2520we%2520give%2520up%2520our%2520mother%2520tongue%2520and%2520learn%2520our%2520owne%2520culture%2520through%2520a%2520foreign%2520language2%253F
返回体
{
"data": {
"eid": "412254" #成功后会返回文章的ID 后续分析用得到
},
"error": 0, #error=0 成功 如果不为0 错误信息在error_des错误输出
"error_des": ""
}
提交接口
POST https://www.pigai.org/index.php?c=ajax&a=processStartIcomet
提交样例
eid=62243252&icomet=pg_62243252_2105
参数说明
参数 | 必选 | 说明 |
---|---|---|
eid | 是 | 需要分析的end |
icomet | 是 | icomet的 |
img_id | 否 | 图片id |
icommet返回体
过程中的数据
{
"uid": "21",
"essay_type": "2",
"pingyu_level": 1,
"sc": 13, #总共13句
"mq_name": "pigai_callback_v2",
"type": "2",
"lang": "zh_cn",
"ct": "1512465535",
"rc": {
"qw_min": 60,
"qw_mean": 80,
"qw_max": 90,
"punish_more_word": false,
"word_high": 500,
"word_low": 100,
"rid": 1020203,
"formula_id": "1",
"lang": "zh_cn",
"grade": "0",
"essay_type": "2",
"type": "2",
"pingyu_level": 1,
"timestamp": 1512468137765,
"kpu": {}
},
"icomet": "pg_62243252_30027",
"irid": 1020203,
"frid": 0,
"rid": "1020203",
"cur": 4, #当前分析到第四句子
"grade": "0",
"e_version": "2",
"essay_id": 62243252,
"key": "1020203_21_2",
"word_num": 167
}
分析完成的icomet返回体
{
"uid": "21",
"inner_sim_model": "word2vec",
"pingyu_level": 1,
"mq_name": "pigai_callback_v2",
"type": "2",
"lang": "zh_cn",
"rc": {
"qw_min": 60,
"qw_mean": 80,
"qw_max": 90,
"punish_more_word": false,
"word_high": 500,
"word_low": 100,
"rid": 1020203,
"formula_id": "1",
"lang": "zh_cn",
"grade": "0",
"essay_type": "2",
"type": "2",
"pingyu_level": 1,
"timestamp": 1512468137765,
"kpu": []
},
"pingyu_key": "ast:7_cl_ratio:2_snt_correct_ratio:8 ttr1:8_b3:8_spell_correct_ratio:7 mwe_disconj:5_mwe_pvd:7 ",
"irid": 1020203,
"frid": 0,
"my_port": 7104,
"grade": "0",
"key": "1020203_21_2",
"formular_score": 69.44945, #最终得分
"pingyu": "错误句子很少,但从句使用不熟练;作者词汇基础不错,高级词汇表达比较恰当,避免拼写错误;文章层次较为清晰。", #评语
"essay_type": "2",
"my_ip": "192.168.1.23",
"sc": 13,
"finished": 31, #出现finished
"formula_id": "1",
"final_score": 72.66929,
"ct": "1512465535",
"icomet": "pg_62243252_30027",
"pun_score": {
"拼写错误": -4
},
"rid": "1020203",
"e_version": "2",
"cate_score": { #分类大发
"0": 0,
"1": 70.87583,
"2": 69.42364,
"3": 76.65999,
"4": 95.9768
},
"essay_id": 62243252,
"word_num": 167,
"goto": "/?c=v2&a=view&eid=62243252"
}
https://www.zybuluo.com/dooy/note/674137
认证:
$sign= md5( $uid.$time.$gongci)
$gongci 为公钥
时间误差 5分钟 300秒内
变量 | 说明 |
---|---|
data.dim_cat_name | 大类类别名称 |
data.dim_cat | 大类值 |
data.arr.snt | 句子 |
data.essay.feedback | 句子反馈,双重从数组 第一重key是句子的id sid |
data.essay.score | 分值 |
data.essay.teacher_yijian | 最终评语(有人工评语取人工评语,无人工取系统) |