Giter Site home page Giter Site logo

cldc's Introduction

Introduction

This directory contains the implementation of downstream tasks (Cross-Lingual Document Crassification) for bilingual word embeddings in our paper (Data Augmentation with Unsupervised Machine Translation Improves the Structural Similarity of Cross-lingual Word Embeddings).

https://aclanthology.org/2021.acl-srw.17.pdf

Requirement

  • Python 3.6.5
  • Pytorch 1.1.0

Dataset

amazon

MLdoc

ted-cldc

Prepare Data

mkdir CLDC/saved_models
mldoc, amazon
unzip CLDC/data/mldoc.zip
unzip CLDC/data/amazon.zip
ted
mv ted-cldc CLDC/data/
./ted-cldc_set.sh

Usage

python3 main.py src_word_vec_path1 trg_word_vec_path2 --lang1 en --lang2 fr --dataset mldoc --model_name test --word_dim 512 

or if you want to use this system in jupyter lab (or jupyter notebook), please look at CLDC/run.ipynb

Author

Reference

@inproceedings{nishikawa-etal-2021-data,
    title = "Data Augmentation with Unsupervised Machine Translation Improves the Structural Similarity of Cross-lingual Word Embeddings",
    author = "Nishikawa, Sosuke  and
      Ri, Ryokan  and
      Tsuruoka, Yoshimasa",
    booktitle = "Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: Student Research Workshop",
    month = aug,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.acl-srw.17",
    doi = "10.18653/v1/2021.acl-srw.17",
    pages = "163--173",
}

Thank you!

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.