UK-IPOP / drug-extraction

A ToolBox for fuzzily extracting drugs mentions from text.
https://drug-extraction.vercel.app
MIT License
3 stars 0 forks source link

JSONL output is unnecessarily nested #59

Closed nanthony007 closed 2 years ago

nanthony007 commented 2 years ago

The JSONL output initial key is the Enum value. It would be much preferred to only output the Drug/Simple output directly so as to avoid this unneeded nested.

Example: {"SimpleResult":{"record_id":null,"algorithm":"LEVENSHTEIN","edits":0,"similarity":1.0,"search_term":"ALCOHOL","matched_term":"ALCOHOL"}}