Skip to contents

Calculate Word Rotator's Distance from keys to keys

Usage

calc_wrd(conn, keys, q, normalized = TRUE, ...)

Arguments

conn

a Magnitude connection.

keys

character vector.

q

character vector.

normalized

logical; whether or not vector embeddings should be normalized?

...

other arguments are passed to transport::wasserstein internally.

Value

numeric scalar.