spaCy/bin/prepare_vecs.py
2015-04-02 06:19:39 +02:00

16 lines
286 B
Python

"""Read a vector file, and prepare it as binary data, for easy consumption"""
import bz2
import plac
import struct
from spacy.vocab import write_binary_vectors
def main(in_loc, out_loc):
write_binary_vectors(in_loc, out_loc)
if __name__ == '__main__':
plac.call(main)