π»How to turn data into Vectors (code)
A guide to turning data into vectors with VectorHub.
$ pip install vectorhub$ from vectorhub.encoders.text import ViText2Vecfrom vectorai import request_api_key
username = input("What is your username")
email = input("What is your email?")
api_key = request_api_key(username, email, description="Trying out VectorHub.")
vi = ViText2Vec(username, api_key)text = "My dog loves taking long walks on the beach!"
vector = vi.encode(text)
# Voila, you have your vector!

Last updated
Was this helpful?