Working with text based distances

Nearest-neighbors is more versatile than just dealing with numbers. As long as we have a way to measure distances between features, we can apply the nearest-neighbors algorithm. In this recipe, we will introduce how to measure text distances with TensorFlow.

Get TensorFlow Machine Learning Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.