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

Multiple Annotation Types from a Single Service? #5

Open
mr-martian opened this issue Jul 21, 2022 · 1 comment
Open

Multiple Annotation Types from a Single Service? #5

mr-martian opened this issue Jul 21, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@mr-martian
Copy link

I would like to make a service for integrating Apertium morphological analyzers, which provide tokenization, lemmatization, XPOS, UPOS, and FEATS in a single operation. While I certainly can split this into 5 services, it strikes me a bit wasteful, when each one is essentially doing the same thing as all the others and just discarding a different piece of the output. Thus, I was wondering if there could be a mechanism added to allow a service to return multiple things.

For instance, by returning a JSON blob with keys like "probabilities/xpos" and "probabilities/head" rather than just a single "probabilities" (where a service with only one value listed for :anno-type in the config file would have the "probabilities" and "probabilities/xpos" (or whatever type it was) be treated the same).

@lgessler
Copy link
Collaborator

lgessler commented Aug 6, 2022

This would be a good feature I agree, one of many improvements that would help with the efficiency of the way NLP services work with the Midas Loop core system.

@lgessler lgessler added the enhancement New feature or request label Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants