(left: Dict[str, float], right: Dict[str, float])
| 206 | |
| 207 | |
| 208 | def scaled_similarity(left: Dict[str, float], right: Dict[str, float]) -> float: |
| 209 | return clamp(cosine(left, right) * 4.0) |
| 210 | |
| 211 | |
| 212 | def dedupe_strings(values: Iterable[Any]) -> List[str]: |