-
Notifications
You must be signed in to change notification settings - Fork 127
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
Export Invalid JSON #2
Comments
As input file is generally new line seperated, output is also new line seperated. It was very hard to come to a common ground regarding this, but i guess you can add one more output format which will have a json array. |
In my opinion exporting a valid JSON array format would be more compliant as most developers will be importing the output of this phase using JSON Parsers and modeling the classes on the JSON. At least it is the process I used. Exporting the from the web app, and importing the contents to another database in order to build the model. In my case, we needed to transform the output to an input that is accepted by AWS Comprehend. |
You can read each line and parse that programmatically. This is very similar to having a complete json array. |
When downloading a completed Data Annotation Task, with mutliple files included, the JSON file is not valid file because it is not defined as an array and is missing comma's between array entities.
i.e
{ "content" : "blah ..." .... } {"content" : "blah ..." ...}
should be
[ { "content" : "blah ..." .... } , {"content" : "blah ..." ...} ]
It makes it very difficult to ingest the file otherwise because it breaks Valid Json Formats and when working on large Annotation projects the files are large and very difficult to patch.
The text was updated successfully, but these errors were encountered: