spaCy/bin/prepare_vecs.py

14 lines
257 B
Python
Raw Normal View History

2015-04-02 07:19:39 +03:00
"""Read a vector file, and prepare it as binary data, for easy consumption"""
import plac
from spacy.vocab import write_binary_vectors
def main(in_loc, out_loc):
write_binary_vectors(in_loc, out_loc)
2015-04-19 11:31:31 +03:00
2015-04-02 07:19:39 +03:00
if __name__ == '__main__':
plac.call(main)