.bin file generated by word2vec is not readable -
i new word2vec.i have run word2vec code in python given corpus train.model saved in .bin file extension.but not readable,like below
:�z�;5>|:#�պsk������a���<�?;x�;���;�]��ʋy��#ع�#g;�##���)���#;c�:��}�:�2�;����2#�;>�i�##n;p+�;�#�:p�ّ:�u,���#�?�#���w��#�93�����t�i##;d�q;�� ;��f;#�n;:9�;��к[q0;c�ƹv�";�ܚ��#u�#�i���7���պ+�#��t�;kc�7y#��#�#�{��a4����:ܟ��b�#;'�#�##�;w-��$p� �v�"��;�3u;k�;ꌒ�?�f��� �
that is, in fact, way 'binary=true`-saved file , should look: lots of raw binary numerical (floating-point) data looks garbage if interpreted text. other code reads format work fine.
however, if want that's easier on your eyes, save using binary=false
optional parameter. may want use different file-extension (such .txt
) hint others (and future-self) file isn't raw binary data.
Comments
Post a Comment