emtellipro-flatten-json

emtellipro-flatten-json

Convert NLP API JSON result files in FILEPATHS to a flatter format.

emtellipro-flatten-json [OPTIONS] [FILEPATHS]...
ArgumentTypeRequiredDescription
FILEPATHS (repeatable)path (must exist, file)yes
OptionTypeDefaultRequiredDescription
-O, --output-formatone of json, jsonl, tsvjsonnoFormat for the output table files.
-o, --outputpath (directory)yesPath to directory to put output table files. This directory must not already exist; it will be created.
--document-idflagfalsenoInclude the document ID for each item. This will add a document_id heading.
--spansflagfalsenoInclude span info. The spans included are the character spans for the entities, as well as the character spans for the sentences. This will add spans, and sentences_spans headings.
--spans-in-sentencesflagfalsenoInclude character spans for the entities relative to the sentence they’re in, not just relative to the entire document. This will add a spans_in_sentences heading.
--values-separator, -stext::noSeparator for values in multi-valued attribute or argument fields in output formats that flatten field values to text.
--dewhitespaceflagfalsenoReplace whitespace in text fields with visual marker characters.