tspeterkim / attentive-reader Goto Github PK
View Code? Open in Web Editor NEWTensorFlow-based implementation of Stanford's Attentive Reader for the CNN/DailyMail datatset
TensorFlow-based implementation of Stanford's Attentive Reader for the CNN/DailyMail datatset
Is this line correct: https://github.com/peterkim95/attentive-reader/blob/master/main.py#L107
If I understand your implementation correctly, you are taking the hadamard product. And I don't see the tanh anywhere (not sure if that makes a big difference though).
M = d_output * tf.expand_dims(tf.matmul(q_output, W_bilinear), axis=1) # [batch, h] -> [batch, 1, h]
Should it be this:
M = d_output + tf.expand_dims(tf.matmul(q_output, W_bilinear), axis=1) # [batch, h] -> [batch, 1, h]
M = tf.nn.tanh(M)
Can you also share the results you were getting?
wget http://cs.stanford.edu/~danqi/data/cnn.tar.gz
tar xvf cnn.tar.gz
rm cnn.tar.gz
wget http://cs.stanford.edu/~danqi/data/dailymail.tar.gz
tar xvf dailymail.tar.gz
rm dailymail.tar.gz
When I want to run the code, the dataset isn't here.
Would you give me a copy? Please!
Hi, recently, I'm do the same project as this. However, I didn't get good accuracy. I;m wondering what hyper parameters you use for training model like # units, learning rate, epochs. Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.