title: Doc2vec: How to get document vectors
body: <p>How to get document vectors of two text documents using Doc2vec?
  I am new to this, so it would be helpful if someone could point me in the right direction / help me with some tutorial</p>
  
  <p>I am using gensim.</p>
  
  <pre><code>doc1=["This is a sentence","This is another sentence"]
  documents1=[doc.strip().split(" ") for doc in doc1 ]
  model = doc2vec.Doc2Vec(documents1, size = 100, window = 300, min_count = 10, workers=4)
  </code></pre>
  
  <p>I get </p>
  
  <blockquote>
    <p>AttributeError: 'list' object has no attribute 'words'</p>
  </blockquote>
  
  <p>whenever I run this.</p>