feedback-entities
- cURL
- Python
POST https://media-api.geneea.com/v2/nlp/analyze/feedback
{
"docId": "article-123",
"referenceKey": "211201-103000-d64a0290",
"entities": [
{ "gkbId": "G130879", "status": "accepted-actively", "comment": "Reuters is ok as an entity" },
{ "stdForm": "cryptocurrency", "status": "expected", "comment": "cryptocurrency is missing"},
{ "gkbId": "G478214", "stdForm": "Tesla, Inc.", "status": "accepted-actively"},
{ "gkbId": "G317521", "stdForm": "John Smith", "status": "accepted-actively"}
]
}
def feedback(input):
return requests.post(f'{BASE_URL}nlp/analyze/feedback', json=input, headers=HEADERS).json()
input = {
'docId': 'article-123',
'referenceKey': '211201-103000-d64a0290',
'entities': [
{ 'gkbId': 'G130879', 'status': 'accepted-actively', 'comment': 'Reuters is ok as an entity' },
{ 'stdForm': 'cryptocurrency', 'status': 'expected', 'comment': 'cryptocurrency is missing'},
{ 'gkbId': 'G478214', 'stdForm': 'Tesla, Inc.', 'status': 'accepted-actively'},
{ 'gkbId': 'G317521', 'stdForm': 'John Smith', 'status': 'accepted-actively'}
]
}
feedback(input)