dinghanshen / swem Goto Github PK
View Code? Open in Web Editor NEWThe Tensorflow code for this ACL 2018 paper: "Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanisms"
The Tensorflow code for this ACL 2018 paper: "Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanisms"
i think the SWEM-max is a model that captures the words' features to form a sentence embedding , how can it train a word embedding model?
I don't think aver_emb_encoder
is actually ever defined in the committed code base--though it's pretty straightforward to understand what it should be doing :-).
As titled
While loading the snli_emb.py with current numpy==1.16.* the following error came:
File "/usr/local/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 451, in load
raise ValueError("Cannot load file containing pickled data "
ValueError: Cannot load file containing pickled data when allow_pickle=False
When, I downgraded it to numpy==1.14.* the error related to binary compatibility came:
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
To me it looks like a package version compatibility related issue with respect to numpy used for creating snli_emb.p
pickle file.
It'll be really helpful if you can mention the package versions also that you have used in as your import statements like for gensim, scipy etc packages.
I am a first-year doctoral student at Beijing University of Posts and Telecommunications,China, and I major in computer science and technology.I have recently read your paper"NASH: Toward End-to-End Neural Architecture for Generative Semantic Hashing" .It would make a really positive contribution to my work. I am wondering if you could kindly send me the source program of your experiments. I promise they will be used only for research purposed.
It seems that the repo do not contain code about the section 4.1.1: Interpreting model predictions, but I am really interested in the part, could you share it if you have time.
Also, I have some questions on the experiment setting of the section.
(1) Do you set the word embedding randomly initialized(as you mention in the section) but not from Glove pretrain.
(2) What is your network architecture, Is Word_embedding + MaxPooling +Classifier or Word_Embedding + MaxPooling + MLP + Classifier.
Hi, seems not find hier encoder as paper mentioned. Very interested to see it :)
Thanks sharing us the code.
I have question regarding DBPedia experiment code.
https://github.com/dinghanshen/SWEM/blob/master/eval_dbpedia_emb.py#L96-L118
It seems to me that you are applying max-pooling (tf.nn.max_pool
) then another max pooling while your paper says that you applied average-pooling then max pooling.
Also, pooling window size (max_len
option) seems to be very large, it seems to me like you are just applying max pooling rather than hierarchical pooling.
Is this intended implementation? Or am I missing somthing?
can u give me a website to download the dataset this paper has been used?
Just a small observation to point out that the requirement.txt when executed on virtual environment installs a CPU backed tensorflow instead of a GPU one.
Better, change it to tensorflow-gpu==1.5
or point out that this give you a CPU tensorflow.
Thanks !!
I was writing this before I realized that jumping solves the issue. Resets the model or something, I guess. Is it okay if I post this anyway in case other people are having the same problem? If not, where should I post it instead?
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.