GithubHelp home page GithubHelp logo

nguyenkh / antsyndistinction Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 6.0 27.83 MB

Integrating Distributional Lexical Contrast into Word Embeddings for Antonym-Synonym Distinction

Java 97.76% Python 2.24%

antsyndistinction's Introduction

Antonym-Syntonym Distinction

Kim Anh Nguyen, [email protected]

Code for the paper Integrating Distributional Lexical Contrast into Word Embeddings for Antonym-Synonym Distinction (ACL 2016). For more details please refer to Nguyen et al. (2016).

Lexical Contrast Information:

  • Antonym files (adj, noun, verb): Each line contains one target word and its antonyms as follows (tab delimited):

    good bad evil

  • Synonym files (adj, noun, verb): Each line contains one target word and its synonyms as follows (tab delimited):

    good practiced expert skillful in-force well estimable secure beneficial unspoilt dear honest...

  • Context files (adj, noun, verb) that refer as W(c) in the Equation 3:

    • To create files of features, the system requires the spaCy tool.

    • Extract relations between target and contexts:

      python create_contexts.py -input <corpus_file> -output <output-file-name>

    • Create features (across adj, noun, verb):

      python create_features.py -input <contexts_file> -output <features_file>

  • Corpus: a plain-text corpus is used to train word embeddings.

Configuration

See config.cfg to set agruments for model.

Running model

Command line:

java -jar dLCE.jar config.cfg vector-size window-size adj-boolean noun-boolean verb-boolean iteration

For example, training model with 300 dimensions; window-size = 5; lexical contrast of adj, noun, verb; and 3 iterations:

java -jar dLCE.jar config.cfg 300 5 True True True 3

Pre-trained embeddings

Reference

@InProceedings{nguyen:2016:antsyn
  author    = {Nguyen, Kim Anh and Schulte im Walde, Sabine and Vu, Ngoc Thang},
  title     = {Integrating Distributional Lexical Contrast into Word Embeddings for Antonym-Synonym Distinction},
  booktitle = {Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL)},
  year      = {2016},
}

antsyndistinction's People

Contributors

nguyenkh avatar

Stargazers

 avatar Ruben Ros avatar SichaoY avatar Divebomb avatar  avatar Teve Fei avatar  avatar  avatar Anda Stoica avatar yukyunglee avatar Shine avatar  avatar  avatar Xiaotong Liu avatar  avatar kiritooo avatar  avatar Yeyao Zhang avatar David Sullivan avatar Guoqiang Lan avatar pclo avatar  avatar  avatar Aubry Cholleton avatar Gus Hahn-Powell avatar ryo.ito avatar chenbjin avatar Shyam Upadhyay avatar Hooram Nam avatar  avatar Alexandre Salle avatar

Watchers

 avatar  avatar  avatar

antsyndistinction's Issues

Pretrained embedding french

Thank you for the great work
Would it be possible to release pretrained embeddings for other languages? I am particularly interested in French word embeddings
Thanks in advance

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.