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

get context for returned objects #101

Open
cambro opened this issue Apr 10, 2020 · 2 comments
Open

get context for returned objects #101

cambro opened this issue Apr 10, 2020 · 2 comments
Labels
API Related to external interfaces with e.g. the COSMOS visualizer enhancement New feature or request

Comments

@cambro
Copy link
Contributor

cambro commented Apr 10, 2020

It would be super helpful to have an API route that took an extracted object id as argument and type as argument and returned spatially-adjacent objects matching type for context.

Example: get body text elements immediately above and below equation.

@cambro cambro added enhancement New feature or request API Related to external interfaces with e.g. the COSMOS visualizer labels Apr 10, 2020
@cambro
Copy link
Contributor Author

cambro commented Apr 10, 2020

Related, but more complex context retrieval example:
Get all sentences containing call-outs to given equation/table/figure element in the body text.

@davenquinn
Copy link
Contributor

The visualizer codebase still has code for representing such relationships spatially at the page level, if bbox coordinates are given.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Related to external interfaces with e.g. the COSMOS visualizer enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants