Skip to content

Multiple Annotation Types from a Single Service? #5

@mr-martian

Description

@mr-martian

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions