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

Update JSON to SQuAD2.0 #1

Open
2 tasks
fmikaelian opened this issue Feb 1, 2019 · 3 comments
Open
2 tasks

Update JSON to SQuAD2.0 #1

fmikaelian opened this issue Feb 1, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@fmikaelian
Copy link
Collaborator

fmikaelian commented Feb 1, 2019

  • Add question id on addAnnotation() method
  • If answer is empty on addAnnotation() add "is_impossible":true otherwise false
{
    "version":"v2.0",
    "data":[
       {
          "title":"Beyonc\u00e9",
          "paragraphs":[
             {
                "qas":[
                   {
                      "question":"When did Beyonce start becoming popular?",
                      "id":"56be85543aeaaa14008c9063",
                      "answers":[
                         {
                            "text":"in the late 1990s",
                            "answer_start":269
                         }
                      ],
                      "is_impossible":false
                   },
                   {
                      "question":"What areas did Beyonce compete in when she was growing up?",
                      "id":"56be85543aeaaa14008c9065",
                      "answers":[
                         {
                            "text":"singing and dancing",
                            "answer_start":207
                         }
                      ],
                      "is_impossible":false
                   },
@fmikaelian
Copy link
Collaborator Author

fmikaelian commented Feb 12, 2019

This may help for id https://github.com/kelektiv/node-uuid #29

@fmikaelian fmikaelian added this to Backlog 🚢 in Kanban Board Feb 26, 2019
@fmikaelian fmikaelian moved this from Backlog 🚢 to To Do 📌 in Kanban Board Feb 26, 2019
@fmikaelian fmikaelian moved this from To Do 📌 to Backlog 🚢 in Kanban Board Apr 8, 2019
@fmikaelian fmikaelian added the enhancement New feature or request label Jun 22, 2019
@rsjain1978
Copy link
Contributor

@fmikaelian I have been able to migrate the application to support SQuAD2.0 format including the above-requested enhancement.

@fmikaelian
Copy link
Collaborator Author

Hi @rsjain1978 Thank you for sharing!

We would be very happy to support both SQuAD 1.1 and SQuAD 2.0 in the annotator. We just need to find a proper way to handle this feature from the user point of view.
Could you describe your solution? Or open a PR with what you have so we can review together?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Kanban Board
Backlog 🚢
Development

No branches or pull requests

2 participants