4.3.4 NER Processing Service

This topic describes the payload details for NER model processing service

Input Payload

Table 4-11 Input Payload

name in Type Required Remarks
modelPath formData string true The path to the NER model.
file formData File true The text file which must be classified.
  • name: " modelPath"

    in: "formData"

    type: string

    required: true

  • name: " file "

    in: "formData"

    type: file

    required: true

Output Payload
  {
   "data": {
    "keyvals": [
    {
     "tagName": "string",
     "value": "string",
     "start_index": 0,
     "end_index": 0
    }
   ]
  }
 }
Output payload data model definition

ModelTrainParamsDTO:

type: object

properties:

data:

properties:

keyvals:

type: array

items:

$ref: '#/definitions/MltbNerKeyValExtractedObjDTO'

MltbNerKeyValExtractedObjDTO:

type: object

properties:

tagName:

type: string

value:

type: string

start_index:

type: number

end_index:

type: number