Hi everyone,
I have a specific need to annotate quite long documents with relations and entities, also showing some metadata, and we have begun work on a custom recipe to do that. We want to have the full document in our browser (scrolling would not be an issue) but the wrap for line breaks in the relation
view seems to break past 7'000 characters (I don't have the token count yet, sorry), giving us :
For reference, here is our page :
Here is the recipe definition, nothing spectacular :
{
"dataset": dataset,
"view_id": "blocks",
"stream": stream,
"config": {
"lang": lang,
"relations_span_labels": [
"Avocat",
"Cabinet",
"Partie Personne Morale",
"Forme Juridique",
],
"labels": ["Substitue", "Représente", "A pour status", "membre de"],
"blocks": [
{
"view_id": "html",
"html_template": "<div> Annoter la decision suivante: {{stream['meta']['short_title']}} </div>",
},
{"view_id": "relations"},
],
},
}
I would love at least a work around to have line breaks in our interface, as we have line breaks in our documents, and they are significant for our purposes. I have seen newlines in relations annotation and it doesn't specifically help given that wrap breaks on us ! Is there any way to break lines on newline tokens ?
As an aside, I noticed that on wider screens, prodigy uses very little of the available space, which is a bummer for us given the quantity of text needed to grasp our documents (we work on legal decisions in France).
Edit: For readability, here is the trace given by the error :
[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost:8080/bundle.js :: setHeight :: line 170" data: no]
StageWrap@http://localhost:8080/bundle.js:220:11863
FiberProvider@http://localhost:8080/bundle.js:220:10007
div
div
_Content@http://localhost:8080/bundle.js:164:7859
bundle.js/createWithStyles/</WithStyles<@http://localhost:8080/bundle.js:88:15449
_Relations@http://localhost:8080/bundle.js:220:58610
bundle.js/createWithStyles/</WithStyles<@http://localhost:8080/bundle.js:88:15449
_Blocks@http://localhost:8080/bundle.js:164:20801
bundle.js/createWithStyles/</WithStyles<@http://localhost:8080/bundle.js:88:15449
div
_CardWithoutTheme@http://localhost:8080/bundle.js:220:89391
bundle.js/createWithStyles/</WithStyles<@http://localhost:8080/bundle.js:88:15449
Card@http://localhost:8080/bundle.js:220:92095
ErrorBoundary@http://localhost:8080/bundle.js:220:95619
div
div
_Annotator@http://localhost:8080/bundle.js:220:100285
bundle.js/createWithStyles/</WithStyles<@http://localhost:8080/bundle.js:88:15449
ConnectFunction@http://localhost:8080/bundle.js:71:12533
main
div
_class2@http://localhost:8080/bundle.js:93:42083
_Main@http://localhost:8080/bundle.js:220:118586
bundle.js/createWithStyles/</WithStyles<@http://localhost:8080/bundle.js:88:15449
ConnectFunction@http://localhost:8080/bundle.js:71:12533
ThemeProvider3@http://localhost:8080/bundle.js:75:24970
App@http://localhost:8080/bundle.js:222:5900
Provider@http://localhost:8080/bundle.js:75:1139