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

JSON output not correct / contains additional header #6

Open
KimBenjaminTang opened this issue Nov 23, 2022 · 0 comments
Open

JSON output not correct / contains additional header #6

KimBenjaminTang opened this issue Nov 23, 2022 · 0 comments

Comments

@KimBenjaminTang
Copy link

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

@KimBenjaminTang KimBenjaminTang changed the title JSON output not correct / contains additional header JSON output not correct / contains additional header and cut off Dec 5, 2022
@KimBenjaminTang KimBenjaminTang changed the title JSON output not correct / contains additional header and cut off JSON output not correct / contains additional header Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant