GithubHelp home page GithubHelp logo

leyiwang / antsyndistinction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nguyenkh/antsyndistinction

0.0 2.0 0.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

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

Watchers

 avatar  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.