Skip to content

Update JSON to SQuAD2.0 #1

Open
@n0thingLLM

Description

@n0thingLLM
  • 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
                   },

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions