kanishkamisra / grounding-embeddings

Comparing human-based and machine-based meaning.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grounding-Embeddings

(This is just a rough summary, will be updated more thoroughly.)

Are distributional representations ready for the real world? Evaluating word vectors for grounded perceptual meaning

Distributional word representation methods exploit word co-occurrences to build compact vector encodings of words. While these representations enjoy widespread use in modern natural language processing, it is unclear whether they accurately encode all necessary facets of conceptual meaning. In this paper, we evaluate how well these representations can predict perceptual and conceptual features of concrete concepts, drawing on two semantic norm datasets sourced from human participants. We find that several standard word representations fail to encode many salient perceptual features of concepts, and show that these deficits correlate with word-word similarity prediction errors. Our analyses provide motivation for grounded and embodied language learning approaches, which may help to remedy these deficits.

Link to paper.

Setup

You'll need NLTK, sklearn, numpy, matplotlib, tqdm, and gensim.

Data

To automatically retrieve all of the above except CSLB:

bash setup.sh

Directory

The main directory has subgraphs, where we keep our code, data outputs, and intermediates. The folders cslb, mcrae, glove, and word2vec are empty but should store the data mentioned above.

Our code is most compatible with Python 3.

The script feature_fit.py computes feature fit scores for words, as described in our paper. Note that the GloVe inputs are in word2vec format. These files should be the same as downloaded GloVe files except it includes the number of vectors and its dimension. So, the top of glove.6B.300d.w2v.txt has an extra line with "400000 300" and glove.840B.300d.w2v.txt has an extra line with "2196017 300".

About

Comparing human-based and machine-based meaning.


Languages

Language:HTML 97.8%Language:Python 2.1%Language:C++ 0.0%Language:Makefile 0.0%Language:Shell 0.0%