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

Semantic String Comparison

4min
this model compares two strings for similarity in context, intent and meaning and provides the result as percentage score of the similarity this model can be used to search and find matches of content based on the similarity as defined above instead of strict keyword based matching for example, finding the mention of price for a product can be based on the comparison string value of "cost of the product", whereas the cost of the product can be specified as "max retail price" by using this model, all such references to the value of the product can be identified regardless of the presence of a matching keyword model input parameters parameter name parameter type required input text yes comparison string 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" "in summer 2024, the tcherassi brothers and namba will open the multiconcept ura, a 1,700 square foot space that includes sushi namba and the listening room, a jazz lounge that will also host cocktailante oboro ura will be located in a gated building in allapattah, an up and coming artistic neighborhood northwest of downtown miami ", "comparison string" "live music" }), }; $ ajax(settings) done(function (response) { console log(response); }); model output result parameter name parameter type example rest api output example 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