Labelbox documentation

Text

Named Entity Recognition

The Named entity recognition (NER) tool is used to label words or phrases in unstructured text.

"Label": { 
    "objects": [ 
        { 
            "featureId": "ck8kulppv000x0yf8pqpqqin4",
            "schemaId": "ck8kukafkqx1a0880iczbrqym", 
            "title": "Entity type A", 
            "value": "entity_type_a", 
            "color": "#8000FF", 
             "version": 1, 
            "format": "text.location", 
            "data": { 
                "location": { 
                    "start": 67, 
                    "end": 128 
                } 
            } 
        } 
    ] 
} 

Note

Labels created prior to November 13, 2020 will still contain the text field under location.

Text classification

You can apply classifications at the global-level when labeling text data.

"Label": 
    {
        "objects": [],
        "classifications": [
            {
                "featureId": "ckeoidh3t0f0f0y51eceb1m3o",
                "schemaId": "ckeoidb0w0ey20y51bb88c0di",
                "title": "Radio classification",
                "value": "radio_classification",
                "answer": 
                    {
                        "featureId": "ckeoidh4d0f0g0y51ama04lpm",
                        "schemaId": "ckeoidb1r0eya0y51h5n42g8m",
                        "title": "Answer 1",
                        "value": "answer_1"
                    }
            },
            {
                "featureId": "ckeoidi4m0fn70y8vg2xo75rj",
                "schemaId": "ckeoidb2g0eym0y51g2hdeqc0",
                "title": "Nested radio",
                "value": "nested_radio",
                "answer": 
                    {
                        "featureId": "ckeoidi550fn80y8vfsgj2rqs",
                        "schemaId": "ckeoidb390eyz0y515lj51i7y",
                        "title": "Answer 2a",
                        "value": "answer_2a"
                    }
            },
            {
                "featureId": "ckeoidl0w0f0n0y510mz0179n",
                "schemaId": "ckeoidb0w0ey40y51ci6xf29c",
                "title": "Checklist classification",
                "value": "checklist_classification",
                "answers": [
                    {
                        "featureId": "ckeoidl8y0f0v0y51hfx5azbu",
                        "schemaId": "ckeoidb1z0eyk0y512rk71exe",
                        "title": "Answer 2",
                        "value": "answer_2"
                    }
                ]
            },
            {
                "featureId": "ckeoidph50fnu0y8v4hkc7sil",
                "schemaId": "ckeoidb0x0ey60y513qez9mfy",
                "title": "Text classification",
                "value": "text_classification",
                "answer": "Text answer"
            },
            {
                "featureId": "ckeoidqfr0f160y51crl73nwt",
                "schemaId": "ckeoidb0x0ey80y51c1eqf6kl",
                "title": "Dropdown classification",
                "value": "dropdown_classification",
                "answer": [
                    {
                        "featureId": "ckeoidqgb0f170y514e6e5xco",
                        "schemaId": "ckeoidb1y0eye0y512j2u8vp4",
                        "title": "Answer 1",
                        "value": "answer_1"
                    },
                    {
                        "featureId": "ckeoidqgn0f180y51100o3mk7",
                        "schemaId": "ckeoidb2n0eyo0y515vmochbv",
                        "title": "Answer 1a",
                        "value": "answer_1a"
                    }
                ]
            }
        ]
    }