Skip to content

Gary Sieling

Software Engineer

  • Machine Learning
  • Full Text Search
  • Data Science
  • Scraping
  • Postgres
  • DevOps
  • AWS
  • Talks

Tag: gensim

Posted on 2017-10-08

Fixed error: AttributeError: ‘Word2Vec’ object has no attribute ‘size’

For old gensim models, you may get this error:

AttributeError: 'Word2Vec' object has no attribute 'size'

You need to set the vector length:

model.vector_size = 1000

Post Views: 0

  • Thought Experiments
  • Proof of Concepts
  • Book Reviews
  • Projects
  • Essays
  • Talks
  • Programming Techniques
  • Javascript
  • Python
  • Prolog
  • Scala
  • Java
  • PHP
  • C#
  • R

Recent Posts

  • The accelerant effects of AI
  • Allow a CircleCI self-hosted machine runner to run jobs for more than 5 hrs
  • Import a folder of CSVs into a single Google Sheet (1 per tab)
  • R Code to summarize Dept of Ed, Civil Rights Data by school district / LEA
  • Export Census ACS5 data by GEOID/block group to CSV in R
Proudly powered by WordPress