Skip to main content

Text Similarity

Computes the similarity between a text and a list of candidates, extracting the text with the highest similarity above the specified threshold.

Category: Data Processing & Transformation · Group: Data Processing · Activity name: TextSimilarity

The TextSimilarity activity in the designer

Example

outputVariable = TextSimilarity("<textCompare>", 0.93, candidates=[])

Inputs

NameTypeRequiredDefaultDescription
Text to ComparestringYesThe text that is going to be compared with the original text.
Similarity ThresholdfloatYes0.93The minimum value that the similarity should have (between 0 and 1 - recommended value between 0.9-0.99).
CandidatesarrayYesThis is the list of candidates that the text is going to be compared with.

Outputs

NameTypeDescription
outputVariablestringSpecifies the name of the variable that will store the best matching candidate.