How to fix the json for NER?

RineRajendran-4574 0 Reputation points
2023-12-04T15:35:59.8533333+00:00

I have created the labelled json file as per the sample one in the docs and is uploaded successfully. but when I create a new project to train model on it, it the the blob is not found. the strating of the json file looks like this, I guess the problem is with the varibale location. I tried to upload a text file and tried to call it in location even then it is not working

{
    "projectFileVersion": "2022-05-01",
    "stringIndexType": "Utf16CodeUnit",
    "metadata": {
        "projectKind": "CustomEntityRecognition",
        "storageInputContainerName": "training-data-examples",
        "projectName": "train-ner-json",
        "multilingual": false,
        "description": "extracts entities like food, name, quantity, brands",
        "language": "de",
        "settings": {}
    },
    "assets": {
        "projectKind": "CustomEntityRecognition",
        "entities": [
            {
                "category": "Person"
            },
            {
                "category": "Brand"
            },
            {
                "category": "Product"
            },
            {
                "category": "Package"
            },
            {
                "category": "Quantity"
            }
        ],
        "documents": [
            {
                "location": "document_0.txt",
                "language": "de",
                "dataset": "Train",
                "entities": [
                    {
                        "regionOffset": 0,
                        "regionLength": 111,
                        "labels": [
                            {
                                "category": "Person",
                                "offset": 17,
                                "length": 3
                            },
                            {
                                "category": "Brand",
                                "offset": 48,
                                "length": 4
                            },
                            {
                                "category": "Product",
                                "offset": 53,
                                "length": 9
                            },
                            {
                                "category": "Product",
                                "offset": 73,
                                "length": 14
                            },
                            {
                                "category": "Package",
                                "offset": 97,
                                "length": 7
                            },
                            {
                                "category": "Quantity",
                                "offset": 93,
                                "length": 3
                            }
                        ]
                    }
                ]
            },
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
390 questions
{count} votes