Json file containing labels not accepted custom NER

Marten 1 Reputation point
2022-04-15T13:09:51.787+00:00

I am trying to make a custom NER project using Azure. When I want to use my own file for the tags of the data, it responds "InvalidArgument: Invalid project json object. Could not find member 'extractors' on object of type 'JsonProjectAssets'" when I click create. I've tried different formats I found online and even tried some example files they give in the Quickstart documentation. But I keep receiving the same error. Are they busy with changing the format of the tagged file or am I doing something wrong? I hope someone knows how to fix it!

Azure Cognitive Services
Azure Cognitive Services
A group of Azure artificial intelligence services and cognitive APIs that help build intelligent apps.
1,150 questions
Cognitive Service for Language
Cognitive Service for Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
219 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pat 1 Reputation point
    2022-04-21T14:10:53.857+00:00

    I ran into this same issue while following the custom text classification quick start guide. I got around the issue by first creating my project in Language Studio with no mapping file (I selected "No, I need to tag my files as part of this project."). Then I used the REST API to add the mapping file. Within the body of the request, you can import the JSON file. I found that the keys need to match the example in the assets object or else I received an error.

    "assets": {  
        "classes": [  
          {  
            "category": "string"  
          }  
        ],  
        "entities": [  
          {  
            "category": "string"  
          }  
        ],  
        "documents": [  
          {  
            "location": "string",  
            "language": "string",  
            "class": {  
              "category": "string"  
            },  
            "classes": [  
              {  
                "category": "string"  
              }  
            ],  
            "entities": [  
              {  
                "regionOffset": 0,  
                "regionLength": 0,  
                "labels": [  
                  {  
                    "category": "string",  
                    "offset": 0,  
                    "length": 0  
                  }  
                ]  
              }  
            ],  
            "dataset": "string"  
          }  
        ]  
      }  
    
    0 comments No comments