Text this: Navigating micro- and nano-motors/swimmers with machine learning