Create a Honeypot
Prerequisites
Authenticate in python (see Authenticate) or in Node (see Authenticate):
Create a Honeypot
A Honeypot is formally a Datarow to which a review type label is given at creation.
Here is the Python function to create a honeypot:
kili.create_honeypot(asset_id, json_response)
where JSON response typically is:
- Named entity recognition
"{ \"entities\": [{ \"mentions\": [{ \"groups\": [], \"id\": \"0ca478e7-23bf-4670-8ea9-bc4fdb233d3d\", \"text\": { \"beginOffset\": 52, \"content\": \"CALVO ENVASES\" }, \"type\": \"SOLD_TO_NAME\" }], \"name\": \"CALVO ENVASES\", \"salience\": 0.6, \"type\": \"SOLD_TO_NAME\" }, { \"mentions\": [{ \"groups\": [], \"id\": \"dab6e3f5-ccd4-44fc-900b-a2e807bd01d1\", \"text\": { \"beginOffset\": 67, \"content\": \"24142\" }, \"type\": \"QUANTITY\" }], \"name\": \"24142\", \"salience\": 0.6, \"type\": \"QUANTITY\" }], \"text\": \"\"}"
- Image object recognition
"{\"annotations\": [{\"id\": \"1c34abfa-a1c4-43b5-87c7-c146f7ce9b8f\", \"score\": null, \"description\": [{\"LEAF\": 70}], \"isOccluded\": false, \"isCut\": false, \"boundingPoly\": [{\"normalizedVertices\": [{\"x\": 0.5410526315789473, \"y\": 0.5899053627760252}, {\"x\": 0.8421052631578947, \"y\": 0.5899053627760252}, {\"x\": 0.1052631578947, \"y\": 0.08832807570978}, {\"x\": 0.5410526315789473, \"y\": 0.1608832807570978}]}]}, {\"id\": \"60dcf7a1-4920-459e-ab79-aecc3ec12c94\", \"score\": null, \"description\": [{\"GRAPE\": 87}], \"isOccluded\": false, \"isCut\": false, \"boundingPoly\": [{\"normalizedVertices\": [{\"x\": 0.15789473684210525, \"y\": 0.6845425867507886}, {\"x\": 0.40421052631578946, \"y\": 0.6845425867507886}, {\"x\": 0.40421052631578946, \"y\": 0.056782334384858024}, {\"x\": 0.15789473684210525, \"y\": 0.056782334384858024}]}]}]}"