#!/usr/bin/env ts-node /** * Convert GloVe txt format (word followed by 50 floats per line) into * a JSON object mapping word -> number[50]. Optionally limit vocabulary size. * * Usage: * npm run convert:glove -- [output.json] [vocabSize] * * Example converting 6B.50d: * npm run convert:glove -- ./glove.6B.50d.txt src/embeddings.json 10000 */ export {};