-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Creating an entity with an attribute and uncertainty added to the attribute causes an error (response from server { status: 500, message: "Unhandled exception.", body_content: null }).
Steps to reproduce the error
- run the Annotator
- select the text fragment
- select "Annotate entity and uncertainty" option
- add a value for one of the attibutes, e.g. for "name"
- go to the "Fill annotation details"
- in the "Target" field select "Attribute"
- select any values for "Certainty level" and "Categories"
- fill in the "Value" field
- in the "Attribute" field select attribute filled earlier, in this case "name"
- click "Create"
Cause of error
In the request, in the element ["payload"][3]["new_element_id"] (the element responsible for adding uncertainty) the name of the attribute to which the uncertainty is added is missing. Currently it gives the number of the operation in which the entity is created (in this case 1), and according to the documentation the name of the attribute to which the uncertainty is added should also be added (in this case the correct form is: "1/name")
Example request
{
"method": "modify",
"payload": [
{
"element_type": "tag",
"method": "POST",
"parameters": {
"end_pos": 1150,
"start_pos": 1144
}
},
{
"edited_element_id": 0,
"element_type": "reference",
"method": "POST",
"parameters": {
"entity_type": "person"
}
},
{
"edited_element_id": 1,
"element_type": "entity_property",
"method": "POST",
"parameters": {
"name": "n"
}
},
{
"element_type": "certainty",
"method": "POST",
"new_element_id": 1,
"parameters": {
"asserted_value": "ccc",
"categories": [],
"certainty": "low",
"description": "",
"locus": "attribute"
}
}
]
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working