Created
July 7, 2018 08:26
-
-
Save alfredfrancis/a88bcd5e8d42a2bd53aca9f044019c67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import modules & set up logging | |
import gensim, logging | |
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) | |
sentences = [['first', 'sentence'], ['second', 'sentence']] | |
# train word2vec on the two sentences | |
model = gensim.models.Word2Vec(sentences, min_count=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment