Skip to content

Instantly share code, notes, and snippets.

@daviwil
Created July 23, 2020 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daviwil/9ce4eaa858bc18dac880b508d590f01f to your computer and use it in GitHub Desktop.
Save daviwil/9ce4eaa858bc18dac880b508d590f01f to your computer and use it in GitHub Desktop.

Azure Cognitive Services Text Analytics for Healthcare

AutoRest Configuration

see https://aka.ms/autorest

Input Files

input-file:
    - https://github.com/iscai-msft/azure-rest-api-specs/blob/dev-cognitiveservices-TextAnalytics-healthcare-v3.1-preview.2/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.1/TextAnalytics.json

Pipeline Configuration

Modelerfour currently disables the subset reducer but we want to turn it back on to prune any unused model types.

pass-thru:
  - model-deduplicator

Operation Selection

directive:
- from: swagger-document
  where: $.paths
  transform: >
    return {
        "/entities/healthcare/jobs": $["/entities/healthcare/jobs"],
        "/entities/healthcare/jobs/{jobId}": $["/entities/healthcare/jobs/{jobId}"],
        "/entities/healthcare/jobs/{jobId}/results": $["/entities/healthcare/jobs/{jobId}/results"]
    };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment