Coder Social home page Coder Social logo

lear's Introduction

LEAR: Lexical Entailment Attract-Repel

Specialising Word Vectors for Lexical Entailment (Vulić and Mrkšić, 2017).

Contact: Nikola Mrkšić ([email protected])

This repository contains the code and data for the Lexical Entailment Attract-Repel (LEAR) method presented in Specialising Word Vectors for Lexical Entailment. The word vectors which achieve the state of the art on the HyperLex dataset can be downloaded here.

Configuring the Tool

The LEAR tool reads all the experiment config parameters from the experiment_parameters.cfg file in the root directory. An alternative config file can be provided as the first (and only) argument to code/lear.py.

The config file specifies:

  • the location of the initial word vectors (distributional_vectors);
  • the sets of linguistic constraints to be injected into the vector space (antonyms, synonyms_sym, synonyms_asym );

The config file also specifies the hyperparameters of the LEAR procedure (set to their default values in config/experiment_parameters.cfg).

The evaluation directory contains the SimLex-999 dataset (Hill et al., 2014), the SimVerb dataset (Gerz et al., 2016), and the HyperLex dataset (Vulić et al., 2017).

Running Experiments

python code/lear.py config/experiment_parameters.cfg

Running the experiment loads the word vectors specified in the config file and fits them to the provided linguistic constraints. The procedure prints the updated word vectors to the results directory as results/final_vectors.txt (one word vector per line).

References

The paper which introduces the LEAR procedure:

 @inproceedings{Vulic:2018naacl,
  author    = {Ivan Vuli\'{c} and Nikola Mrk\v{s}i\'c},
  title     = {Specialising Word Vectors for Lexical Entailment},
  booktitle   = {Proceedings of NAACL-HLT},
  year      = 2018,
  pages = 1134--1145,
 }

If you are using WordNet (Miller, 1995) constraints, please cite these papers. If you are using BabelNet constraints, please cite (Navigli and Ponzetto, 2012).

lear's People

Contributors

nmrksic avatar ivulic avatar

Watchers

James Cloos 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.