mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
14 lines
257 B
Python
14 lines
257 B
Python
"""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)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
plac.call(main)
|