Data Machines
...
Models Supported by Data Machi...
NLP Models

Categorize Text

5min
this model categorizes assigns to an input document individual nodes within a hierarchical taxonomy for example, in the text "ibm announces new advances in quantum computing " examples of categories extracted are technology and computing/hardware/computer and technology and computing/operating systems, nodes respectively at level 3 and level 2 in a hierarchical taxonomy model input parameters parameter name parameter type required preset values input text yes rest api input example var settings = { "url" "https //mlapi qualetics com/api/datamachine/init?id=\<datamachine id>", "method" "post", "headers" { //add authorization headers here "content type" "application/json" }, "data" json stringify({ "input" "this model categorizes assigns to an input document individual nodes within a hierarchical taxonomy for example, in the text \\"ibm announces new advances in quantum computing \\" examples of categories extracted are technology and computing/hardware/computer and technology and computing/operating systems, nodes respectively at level 3 and level 2 in a hierarchical taxonomy" }), }; $ ajax(settings) done(function (response) { console log(response); }); model output result parameter name parameter type input text original input text categories identified json string confidence score number final result json string sessionid guid string status text example api output { "input" "this model categorizes assigns to an input document individual nodes within a hierarchical taxonomy for example, in the text \\"ibm announces new advances in quantum computing \\" examples of categories extracted are technology and computing/hardware/computer and technology and computing/operating systems, nodes respectively at level 3 and level 2 in a hierarchical taxonomy", "original input" "this model categorizes assigns to an input document individual nodes within a hierarchical taxonomy for example, in the text \\"ibm announces new advances in quantum computing \\" examples of categories extracted are technology and computing/hardware/computer and technology and computing/operating systems, nodes respectively at level 3 and level 2 in a hierarchical taxonomy", "categories identified" "\[\\"technology & computing\\", \\"computing\\"]", "confidence score" 0 999859, "final result" "\[\\"technology & computing\\", \\"computing\\"]", "sessionid" "2a44d533 de77 4009 9014 a00417637c66", "status" "completed" } standard output parameters every model execution output consists of the following standard output parameters input the input string required for the model to extract the categories original input this is the input provided to the first step in model which is retained across multiple steps in a data machine workflow final result the result of the model executed in the final step of the data machine workflow sessionid a unique session id that is generated for every execution of a data machine which can be used to retain results across multiple sessions status the result of the data machine execution if all of the steps in a sequence are successfully executed, a value of "completed" is provided if the execution is interrupted at any point, a value of "terminated" is provided with the reason for termination