title: Python, DotProduct between two vectors issue
body: <p>i'm trying to do a dot product between two vectors, but the problem is that they have to be simmetrical, now i explain what i mean.</p>
  
  <p>if i have two vectors like these:</p>
  
  <pre><code>[('horse',2),('doll',34)]
  
  [('horse',1),('monster',23),('salamander',12),('doll',17)]
  </code></pre>
  
  <p>in this case i will have two vectors of numerical values</p>
  
  <pre><code>[2,34]
  [1,23,12,17]
  </code></pre>
  
  <p>but to do a correct dot product i would like to have two vectors of the same lenght, and the values with the same word have to be in the same position, filling the not used positions with zeros.</p>
  
  <p>for example:</p>
  
  <pre><code>[2,0,0,34]
  [1,23,12,17]
  </code></pre>
  
  <p>Any ideas how to transform the first vector in this way? I have to do it in python
  Thank you!</p>