You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have external tagger that updates docData object. How can I refresh visualized annotations after the update?
For example if I execute in chrome developer console
docData.entities.push(["N11", "Name", [[220, 227]]]);
I'd like this new annotation to become visible in browser.
I see that such annotation becomes visible if I add another annotation manually afterwards, but I wish I could refresh annotations automatically.
I've tried to execute window_onload() but that messes up Annotator UI and I can't add other annotations
thanks!
The text was updated successfully, but these errors were encountered:
Used the following hack (I think this issue related to #4)
modified index.html line 425 to prevent automating brat display on page load:
docData.entities.push(["N11", "Name", [[220, 227]]]); //add another entity to annotation
localStorage.setItem("docData", JSON.stringify(window.docData)); // save entity in storage
location.reload(); // clear all objects
var docData = JSON.parse(localStorage.getItem('docData')); //reload docData from storage
window_onload(); //visualise
Hi
I have external tagger that updates docData object. How can I refresh visualized annotations after the update?
For example if I execute in chrome developer console
docData.entities.push(["N11", "Name", [[220, 227]]]);
I'd like this new annotation to become visible in browser.
I see that such annotation becomes visible if I add another annotation manually afterwards, but I wish I could refresh annotations automatically.
I've tried to execute window_onload() but that messes up Annotator UI and I can't add other annotations
thanks!
The text was updated successfully, but these errors were encountered: