Comments (2)
I have tried replicating this issue and the following is what I found:
After loading the adhered document and annotating it, there are some cases in which the
annotation failed on me.
Having those annotations, and selecting the fourth word in the paragraph (Coppaun), I
the server fails at creating the annotation. The following screenshot shows the retrieved document
at app load, the message sent to the server, and the slice of the original document using
the sent positions:
The server-side code fails in the _add_tag method.
The annotated_fragment argument is
set to a different value than what is obtained in the front-end:
</date> Coppaun<gap/>
from collaborative-platform.
I replicated your bug. The root of this bug is this same as in first message in this issue - wrong positions in request. The difference is that positions pointing to fragment with part of the tag on the end instead on the beginning ('Coppaun<' instead 'objectName ref="#object_recipe_0_xml-1">Guetten' as in first post).
I added a validation to check for that exceptions, and now, if this exception will occur, backend will return a proper message with included fragment of xml based on positions from request. This will stop WebSockets from disconnecting in this cases and I hope this will help you to figure out why positions in request sometimes are wrong.
from collaborative-platform.
Related Issues (20)
- Missing the ability to add uncertainty to the text, without creating an entity
- A request that adds uncertainty to the text fragment that is a reference to an entity has an incorrect value
- Missing the ability to add uncertainty to reference to entity
- Missing the ability to add uncertainty to another uncertainty
- Wrong "start_pos" in request for already tagged text
- "Text fragment" in "Entity type" drop-down list in Annotator
- Uploading csv or txt does not show error message (server throws 500)
- Alex's error on the annotator HOT 1
- Show the degree attribute to the user HOT 1
- Move lists of entities to the one dedicated element in TEI HOT 4
- Replace the ab tag with the seg tag HOT 4
- Text longer than 1 word in Asserted Value must be wprapped in a separate tag HOT 1
- Object name must be embeded in more complex structure HOT 1
- `start_pos` and `end_pos` are equal in request in Annotator HOT 1
- The annotator fails to annotate HOT 1
- Entities and annotations are not preserved upon upload HOT 4
- In Annotator, after adding entity, interface disappear. HOT 4
- Postgres: Name or service not known HOT 1
- Adding uncertainty to a new entity property sends an invalid request
- Adding uncertainty to text sends an invalid request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collaborative-platform.