擅长:python、mysql、java
<p>根据文档<a href="http://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-science/word2vec.html?highlight=aggregate_method#transforming-words-to-vectors" rel="nofollow noreferrer">here</a>,它在Python和R中是相同的:</p>
<blockquote>
<p>A transform function is available for use with Word2vec. This function
transforms words to vectors using an existing Word2Vec model and has
the following usage <strong>(in both R and Python)</strong></p>
</blockquote>
<p>文档中的代码:</p>
<pre><code>h2o.transform(word2vec, words, aggregate_method)
</code></pre>