Giter Site home page Giter Site logo

vision_analysis's Introduction

Vision Analysis

Codes for the paper What You See Helps You Read: Understanding How Vision Enhances Language Semantics, Relations and Commonsense

Pretrain BERT Baseline Models for Compare

Check here for scripts to run model pretraining.

Word Embedding Analysis

The code for probing semantic shift, show word neighbors and association analysis is at embedding_analysis.ipynb. download all datasets for word embedding analysis, and put them into ./data dir.

script for test word analogy:

bash embedding_analysis/scripts/run_analogy.sh

script for test semantic-classes classification:

bash embedding_analysis/scripts/run_sclass.sh

script for test WiC word sense disambiguation task:

bash embedding_analysis/scripts/run_superglue.sh

Relation Analysis

Semantic Relation

script for test SemEval2010 task 8 relation classification task:

bash relation_analysis/scripts/run_relclass.sh

Coherence Relation

The script for test SentEval is:

bash relation_analysis/scripts/run_senteval.sh

Commonsense Analysis

Sentence Representation Analysis

Speech, Language and the Brain (CSLB) property norms data should be manually download from https://cslb.psychol.cam.ac.uk/propnorms After downloading, you should unzip the data to ./data/ and run this script to pre-process the data:

bash commonsense_analysis/get_sentence_data.sh

The script for test CSLB is:

python commonsense_analysis/run_cslb.sh

Knowledge Base Analysis

We use "Masked Language Model Scoring" to probe to what extent does a model master some commonsense knowledge. The script of running ConceptNet/Atomic analysis for each model is:

python commonsense_analysis/run_atomic2020.sh

vision_analysis's People

Contributors

mars1994 avatar

Stargazers

Mr.Blue avatar

Watchers

Wanqing Cui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.