86 lines
1.7 KiB
JSON
86 lines
1.7 KiB
JSON
{
|
|
"metadata": {
|
|
"apiVersion": "2016-10-31",
|
|
"endpointPrefix": "nlp",
|
|
"jsonVersion": "1.1",
|
|
"serviceFullName": "Jibo NLP",
|
|
"signatureVersion": "v4",
|
|
"targetPrefix": "NLP_20161031",
|
|
"protocol": "json"
|
|
},
|
|
"operations": {
|
|
"PartOfSpeech": {
|
|
"input": {
|
|
"shape": "S1"
|
|
},
|
|
"output": {
|
|
"type": "structure",
|
|
"required": [
|
|
"partsOfSpeech"
|
|
],
|
|
"members": {
|
|
"partsOfSpeech": {
|
|
"type": "list",
|
|
"member": {
|
|
"type": "structure",
|
|
"members": {
|
|
"word": {
|
|
"type": "string"
|
|
},
|
|
"pos": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"NamedEntityRecognition": {
|
|
"input": {
|
|
"shape": "S1"
|
|
},
|
|
"output": {
|
|
"type": "structure",
|
|
"required": [
|
|
"namedEntities"
|
|
],
|
|
"members": {
|
|
"namedEntities": {
|
|
"type": "list",
|
|
"member": {
|
|
"type": "structure",
|
|
"members": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"shapes": {
|
|
"S1": {
|
|
"type": "structure",
|
|
"required": [
|
|
"Input"
|
|
],
|
|
"members": {
|
|
"Input": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |