client.*createNamedentityrecognitionTask*({
callback_url: 'http://www.example.com/callback',
instruction: 'Please label any people, places, or organizations in the following text.',
params: {
text: "They were delighted by the Hilton's location: surrounded by vibrant nightlife, and in close proximity to major landmarks in Paris. And as luck would have it, Paris Hilton happened to be staying in the room next door!",
labels: [
{
name: 'T_ORG',
display_name: 'Organization',
},
{
name: 'T_LOC',
display_name: 'Location',
},
{
name: 'T_PERS',
display_name: 'Person',
},
]
},
}, (err, task) => {
// do something with task
});