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

Feature Request: Support JSON format (not JSONL) #454

Closed
mingwei-liu opened this issue Nov 23, 2019 · 1 comment · Fixed by #1310
Closed

Feature Request: Support JSON format (not JSONL) #454

mingwei-liu opened this issue Nov 23, 2019 · 1 comment · Fixed by #1310
Labels
feature request feature request for doccano

Comments

@mingwei-liu
Copy link

Feature description

Currently, the doccano support import and export as JSONL form. Why not supoort JSON format?
Something like this:

[
{"text": "EU rejects German call to boycott British lamb.", "labels": [ [0, 2, "ORG"], [11, 17, "MISC"], ... ]},
{"text": "Peter Blackburn", "labels": [ [0, 15, "PERSON"] ]},
{"text": "President Obama", "labels": [ [10, 15, "PERSON"] ]}
]

Because we need to parse the data every time.
Thanks!

@icoxfog417 icoxfog417 added the feature request feature request for doccano label Nov 23, 2019
@cgill95
Copy link
Contributor

cgill95 commented May 14, 2020

I started working on this and finished the import so far. Not sure if I should create a pull request already for it or implement the export first as well.
https://github.com/cgill95/doccano/tree/feature/json_import

This was referenced May 15, 2020
@icoxfog417 icoxfog417 changed the title Feature Request: Import and Export from JSON format, not JSONL form Feature Request: Support JSON format (not JSONL) Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request for doccano
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants