Skip to content

JSON output not correct / contains additional header #6

@KimBenjaminTang

Description

@KimBenjaminTang

Hello and thanks for providing the Python API for MetaMap!

I would like to extract UMLS Concepts (restricted to SNOMED-CT) via MetaMap and use the JSON output.
Hence the arguments are: -A -R SNOMEDCT_US_2022_03_01 --JSONf 2 -V USAbase -Z 2022AA

However, the output for a given request for example as shown below, results in a response containing not only JSON but also a ca. 205 characters long string showing the parameters before that:
BrokenJSON_Output

A current workaround is to trim the response to be able to read the JSON output properly. However since the JSON itself contains the parameter information under 'CmdLine', the string in the response before that should be removed.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions