Flatten JSON
The SDK includes a tool for converting a JSON files from the NLP API into a collection of flattened tables in TSV or JSON format.
This tool can be run as emtellipro-flatten-json.
Files produced
A simple example of running the flatten JSON tool is the following:
The output directory must not already exist; the tool will create it for you. If the output directory already exists, you’ll get an error.
After running the above command, the output directory will contain the following files.
- The concepts, with headings:
ontology,concept_id,description.
- The assumed entities, with headings:
value.
- The found entities, with headings:
sentences_text,text,section_name,polarity,uncertainty,measurement_unit,known_ambiguity,question_status,guidance.
- The concepts for each found entity, with headings:
sentences_text,text,concept_id,description.
- Found entity types, with headings:
sentences_text,text,entity_type_value.
- Relations, with headings matching the arguments and attributes for each relation. For example, the experiencer relation contains
polarity,experienced,experiencer.
- The document sections, with headings:
level,name,text.
- The sentences text, with headings:
text.
Some command line options include extra headings. See the command line option documentation further down this page.
Command line tool options
The following is the output of emtellipro-flatten-json --help, which returns simple usage information for the tool.
See the emtellipro-flatten-json command reference for all options and arguments.

