Type: lib.difflib.SimilarityRatio
Namespace: lib.difflib
Description
Calculates the similarity ratio between two strings. difflib, similarity, ratio, compare
Use cases:
- Fuzzy string matching
- Compare document versions
- Evaluate similarity of user input
Properties
| Property | Type | Description | Default |
|---|---|---|---|
| a | str |
First string to compare | `` |
| b | str |
Second string to compare | `` |
Outputs
| Output | Type | Description |
|---|---|---|
| output | float |
Metadata
Related Nodes
Browse other nodes in the lib.difflib namespace.