xmxoxo / BERT-train2deploy

BERT模型从训练到部署
517 stars 165 forks source link

端口测试的post body中的 id 111是从哪来的? #6

Closed sunweiconfidence closed 4 years ago

sunweiconfidence commented 5 years ago

curl -X POST http://192.168.15.111:8091/encode \ -H 'content-type: application/json' \ -d '{"id": 111,"texts": ["总的来说,这款手机性价比是特别高的。","槽糕的售后服务!!!店大欺客"], "is_tokenized": false}'

请问您端口测试的id 111是从哪得来的?不太明白,谢谢。

xmxoxo commented 5 years ago

随意指定的,可用于识别返回的数据;

sunweiconfidence commented 5 years ago

好的,谢谢