Lebron-Kun / TF_Sentence_Similarity_CNN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TF_Sentence_Similarity_CNN

This code belongs to the "Implementing a CNN for Sentence Similarity in Tensorflow" blog post.

Requirements:

  • Python 2.7
  • Tensorflow 1.0
  • numpy

Notes:

Because the glove file is too big, there is no way to upload. Please go to the official website to download glove.6B.50d.txt.

Attention:

You should add

400000 50

at the first row in the glove.6B.50d.txt file, after that we could read the glove with word2vec tools.

or you will meet the error ---- ValueError: invalid literal for int() with base 10: 'the'

Hava a good time!

About


Languages

Language:Python 100.0%