geneea-nlp-client
Version:
The TypeScript Client for Geneea Interpretor G3 API.
23 lines (22 loc) • 695 B
TypeScript
import { HasId } from "../../common/id";
/** Interface of items that can be assigned a list of vectors. */
interface HasVectors extends HasId {
vectors: Vector[] | null;
}
/** Class encapsulating a vector. */
declare class Vector {
name: string;
version: string;
values: number[];
/**
*
* @param name Name identifying the model of this vector.
* @param version A particular version of the model which produced this vector.
* @param values The vector values.
*/
constructor(name: string, version: string, values: number[]);
/** Dimension of this vector. */
get dimension(): number;
toString(): string;
}
export { HasVectors, Vector };