Giter Site home page Giter Site logo

pzoom522 / l1-refinement Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 3.0 30 KB

Code for "Cross-Lingual Word Embedding Refinement by ℓ1 Norm Optimisation" (NAACL 2021)

License: GNU Affero General Public License v3.0

Python 100.00%
cross-lingual-word-embedding low-resource-machine-translation word-translation naacl2021 transfer-learning

l1-refinement's Introduction

L1-Refinement

Code for Cross-Lingual Word Embedding Refinement by ℓ1 Norm Optimisation

Tested environment

  • python==3.7.6
  • faiss==1.6.3
  • scipy==1.4.1
  • numpy==1.18.1
  • torch==1.6.0
  • fastText==0.9.2
  • Intel Core i9-9900K CPU with 32GB Memory

Example command

python refiner.py --src_lang en --tgt_lang de --src_emb aligned/en-de/embeddings/en.vec --tgt_emb aligned/en-de/embeddings/de.vec --exp_path a/target/dir

About

If you like our project or find it useful, please give us a ⭐ and cite us

@inproceedings{L1-Refinement,
    title = "Cross-Lingual Word Embedding Refinement by $\ell_{1}$ Norm Optimisation",
    author = "Peng, Xutan  and
      Lin, Chenghua  and
      Stevenson, Mark",
    booktitle = "Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
    month = jun,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2021.naacl-main.214",
    pages = "2690--2701"
}

This code is based on MUSE

l1-refinement's People

Contributors

pzoom522 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.