Data Machines
...
Models Supported by Data Machi...
NLP Models
Remove HTML
4min
this model removes html tags and attributes from a given block of html content and provides a plain text output this model is useful in conjunction with downstream text analysis to extract entities, relationships and other attributes from a text input by removing the html characters model input parameters parameter name parameter type required 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" "\<div class=\\"article section article section type text utility text\\"> \<p>irvine, calif — it’s back! taco bell has announced the return of the \<a href=\\"https //www tacobell com/food/tacos/double decker taco?store=002494\\" target=\\" blank\\" rel=\\"noopener noreferrer\\">double decker taco\</a>, which is now on the menu at restaurants nationwide for a limited time \</p> \</div>" }), }; $ ajax(settings) done(function (response) { console log(response); }); model output result parameter name parameter type html content text plain text text rest api output example { "html content" "\<div class=\\"article section article section type text utility text\\"> \<p>irvine, calif — it’s back! taco bell has announced the return of the \<a href=\\"https //www tacobell com/food/tacos/double decker taco?store=002494\\" target=\\" blank\\" rel=\\"noopener noreferrer\\">double decker taco\</a>, which is now on the menu at restaurants nationwide for a limited time \</p> \</div>", "original input" "\<div class=\\"article section article section type text utility text\\"> \<p>irvine, calif — it’s back! taco bell has announced the return of the \<a href=\\"https //www tacobell com/food/tacos/double decker taco?store=002494\\" target=\\" blank\\" rel=\\"noopener noreferrer\\">double decker taco\</a>, which is now on the menu at restaurants nationwide for a limited time \</p> \</div>", "plain text" " irvine, calif — it’s back! taco bell has announced the return of the double decker taco , which is now on the menu at restaurants nationwide for a limited time ", "final result" " irvine, calif — it’s back! taco bell has announced the return of the double decker taco , which is now on the menu at restaurants nationwide for a limited time ", "sessionid" "e34905c8 2445 426c a732 506b83170502", "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