Remote Vecworks#

Vecworks ships with a built-in server that you may use to serve any vectorizer provided by Vecworks over HTTP. A client is also provided to easily interface with such servers.

class vecworks.vectorizers.remote.RemoteVectorizer#

Client for vectorizers served with Vecworks’ vectorizer server.

Interface#

__init__(url: str, vectorizer: str | None = None)#

Initializes the vectorizer.

Parameters#

url

URL of the service providing Vecworks’ remote vectorizer API.

vectorizer

Alias of the vectorizer to access. If no alias is specified, the alias must be passed when transform() is called.

transform(input: Any | Iterable[Any], vectorizer: str | None = None) ndarray | sparray | SparseArray#

Vectorizes the given data.

Also see: Vectorizer.