async retraining by doc id

POST {{aig-domain}}/api/v3/ner/{{pdf-document-id}}/retraining/async

Request Body

{"callback"=>"{{callback}}", "data"=>[{"toText"=>"", "fromText"=>"", "action"=>"", "entityName"=>"", "entityType"=>"", "preEntityType"=>"", "recognitionMethod"=>""}]}

HEADERS

KeyDatatypeRequiredDescription
iDox-API-Engine-Keystring

RESPONSES

status: OK

{"items":[{"paragraph":"Pyroclastic flows at La Soufriere could possibly cause destruction and devastation of areas close to the volcano, according to NEMO.","entities":[{"text":"NEMO","category":"Organization","subcategory":"","confidenceScore":0.97,"offset":127,"length":4},{"text":"La Soufriere","category":"Location","subcategory":"Geographical","confidenceScore":0.79,"offset":21,"length":12},{"text":"volcano","category":"Location","subcategory":"Geographical","confidenceScore":0.95,"offset":105,"length":7},{"text":"NEMO","category":"Organization","subcategory":"","confidenceScore":0.98,"offset":127,"length":4}]},{"paragraph":"Pyroclastic flows contain a high-density mix of hot lava blocks, pumice, ash and volcanic gas. They move at very high speed down volcanic slopes, typically following valleys, according to the USGS and destroy nearly everything in their path.","entities":[{"text":"USGS","category":"Organization","subcategory":"","confidenceScore":0.97,"offset":192,"length":4},{"text":"volcanic slopes","category":"Location","subcategory":"","confidenceScore":0.56,"offset":129,"length":15},{"text":"valleys","category":"Location","subcategory":"","confidenceScore":0.76,"offset":166,"length":7},{"text":"USGS","category":"Organization","subcategory":"","confidenceScore":0.97,"offset":192,"length":4}]},{"paragraph":"The University of the West Indies Seismic Research Centre tweeted photos taken by one of its researchers Sunday morning of an ash covered landscape in St. Vincent, using the hashtag #stilldangerous.","entities":[{"text":"University of the West Indies Seismic Research Centre","category":"Organization","subcategory":"","confidenceScore":0.94,"offset":4,"length":53},{"text":"researchers","category":"PersonType","subcategory":"","confidenceScore":0.97,"offset":93,"length":11},{"text":"Sunday morning","category":"DateTime","subcategory":"DateTimeRange","confidenceScore":0.8,"offset":105,"length":14},{"text":"University of the West Indies Seismic Research Centre","category":"Organization","subcategory":"","confidenceScore":0.98,"offset":4,"length":53},{"text":"one","category":"Quantity","subcategory":"Number","confidenceScore":0.8,"offset":82,"length":3},{"text":"researchers","category":"PersonType","subcategory":"","confidenceScore":0.99,"offset":93,"length":11},{"text":"Sunday morning","category":"DateTime","subcategory":"DateTimeRange","confidenceScore":0.8,"offset":105,"length":14},{"text":"St. Vincent","category":"Location","subcategory":"GPE","confidenceScore":0.97,"offset":151,"length":11}]}]}