Enable specifying the Labels on Text Extractions models
Y
Yuan-Yow Wu
For example, allow json data as follows
json_data = {
"text": "Rodrigues works at Microsoft Corporation in Los Angeles. He is gonna travel to an event in New York, that will be held at 03:00 PM on Mar 18, 2024.",
"labels": [
{"text": "Rodrigues", "label": "person"},
{"text": "Microsoft Corporation", "label": "company"},
],
"tags": [],
}