/cnn-tensorflow

cnn for relation extraction

Primary LanguagePython

cnn-tensorflow

cnn for relation extraction
Dependencies: Python 2.7, Tensorflow, Numpy, nltk, sklearn

run

python demo.py

train word embeddings

python word2vec_helpers.py input_file output_model_file output_vector_file  

data demo

record-65._12
Codeine / Iodine
(['codeine', 0, 0, 'treatment'], ['iodine', 2, 2, 'treatment'])
[0]