Skip to content

onFinalize introduction

The last step of analyzing a document in a text intelligence engine and in Studio is the finalization of the results to be output.
After this step it is still possible to intervene on the results with scripting, by writing specific code in the onFinalize event handling function.

The result object, which contains the final engine analysis results, is passed to this function as its argument and it can be modified here.

function onFinalize(result) {

    // Put here the code to adjust the result object, i.e. the final output.

    return result;
}