Last active
August 29, 2015 14:22
-
-
Save atqamar/3d9f2526cb2adadc1043 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> t = loader('word2vec2-track-40-blacklisted.tree', 40) | |
found 10 roots with degree 3610380 | |
>>> item_vec(1926092) | |
[-0.61222898960113525, 0.40110298991203308, -0.86882501840591431, -0.40390399098396301, 1.5739649534225464, 2.9912350177764893, 1.2347650527954102, -2.8840279579162598, -1.6604549884796143, 0.54188698530197144, 1.1412789821624756, 1.241657018661499, -1.0545389652252197, 0.26847600936889648, -0.25054800510406494, 0.075194999575614929, 0.18987299501895905, -0.88793599605560303, 0.13406600058078766, -0.66986697912216187, 1.7543129920959473, -2.12192702293396, -1.9274799823760986, -1.4863320589065552, -0.048367001116275787, 4.0147228240966797, 2.0764510631561279, -0.91519302129745483, 1.449802041053772, 0.0013439999893307686, 1.447721004486084, 2.7600500583648682, 0.5310789942741394, 1.1490709781646729, -3.2139129638671875, -1.2849889993667603, -1.6008919477462769, -1.5216890573501587, 0.94182801246643066, -0.58957099914550781] | |
>>> t = loader('word2vec2-track-40.tree', 40) | |
found 10 roots with degree 3610380 | |
>>> item_vec(1926092) | |
[-0.61222898960113525, 0.40110298991203308, -0.86882501840591431, -0.40390399098396301, 1.5739649534225464, 2.9912350177764893, 1.2347650527954102, -2.8840279579162598, -1.6604549884796143, 0.54188698530197144, 1.1412789821624756, 1.241657018661499, -1.0545389652252197, 0.26847600936889648, -0.25054800510406494, 0.075194999575614929, 0.18987299501895905, -0.88793599605560303, 0.13406600058078766, -0.66986697912216187, 1.7543129920959473, -2.12192702293396, -1.9274799823760986, -1.4863320589065552, -0.048367001116275787, 4.0147228240966797, 2.0764510631561279, -0.91519302129745483, 1.449802041053772, 0.0013439999893307686, 1.447721004486084, 2.7600500583648682, 0.5310789942741394, 1.1490709781646729, -3.2139129638671875, -1.2849889993667603, -1.6008919477462769, -1.5216890573501587, 0.94182801246643066, -0.58957099914550781] | |
>>> | |
AND | |
qamar@aisling:/var/rec-sys/2015-W19$ cat word2vec2-all-items-40.txt | grep 1926092 | |
1926092 -0.612229 0.401103 -0.868825 -0.403904 1.573965 2.991235 1.234765 -2.884028 -1.660455 0.541887 1.141279 1.241657 -1.054539 0.268476 -0.250548 0.075195 0.189873 -0.887936 0.134066 -0.669867 1.754313 -2.121927 -1.927480 -1.486332 -0.048367 4.014723 2.076451 -0.915193 1.449802 0.001344 1.447721 2.760050 0.531079 1.149071 -3.213913 -1.284989 -1.600892 -1.521689 0.941828 -0.589571 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment