Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] Reduce request length by specifying the length of markup #10877

Open
wrenger opened this issue Sep 12, 2024 · 0 comments
Open

[API] Reduce request length by specifying the length of markup #10877

wrenger opened this issue Sep 12, 2024 · 0 comments

Comments

@wrenger
Copy link

wrenger commented Sep 12, 2024

Certain languages allow a lot of markup (LaTeX, HTML, Markdown with comments...). Including this markup as text makes the request longer than they have to be. For LaTeX documents, markup texts usually take up 20-40% of the entire annotated text.

Is the markup text used anywhere?
If not, I would prefer a more space optimal solution. We could allow specifying the length of a markup part (instead of its content).

 {"annotation":[
  {"text": "A "},
- {"markup": "<b>"},
+ {"markup": 3},
  {"text": "test"},
- {"markup": "</b>"}
+ {"markup": 4}
 ]}

For backwards compatibility, the API just could allow both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant