{"id":5475,"date":"2017-10-08T23:31:07","date_gmt":"2017-10-08T23:31:07","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5475"},"modified":"2017-10-08T23:31:07","modified_gmt":"2017-10-08T23:31:07","slug":"fixed-error-attributeerror-word2vec-object-no-attribute-size","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixed-error-attributeerror-word2vec-object-no-attribute-size\/","title":{"rendered":"Fixed error: AttributeError: &#8216;Word2Vec&#8217; object has no attribute &#8216;size&#8217;"},"content":{"rendered":"<p>For old gensim models, you may get this error:<\/p>\n<pre>\nAttributeError: 'Word2Vec' object has no attribute 'size'\n<\/pre>\n<p>You need to set the vector length:<\/p>\n<pre lang=\"python\">\nmodel.vector_size = 1000\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fixing a gensim error<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[248,447],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5475"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=5475"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5475\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}