Skip to content

An implementation of reflection-based word attribute transfers (ACL 2020 SRW)

License

Notifications You must be signed in to change notification settings

ahclab/reflection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT License

Reflection-based Word Attribute Transfer

paper (ACL2021 SRW)

Setup

$ cd data
$ wget -c https://s3.amazonaws.com/dl4j-distribution/GoogleNews-vectors-negative300.bin.gz
$ gunzip GoogleNews-vectors-negative300.bin.gz
$ cd data
$ wget https://nlp.stanford.edu/data/glove.42B.300d.zip
$ unzip glove.42B.300d.zip
$ cd ../src
$ python fix_glove_file.py

Usage

Training example

$ python train.py --attr MF --save-model

Evaluation example

$ python eval.py --attr MF --model-dir ./result/[MODEL DIRECTORY]

Transfer test

$ python trans.py --attr MF --model-dir ./result/[MODEL DIRECTORY] # demo mode
$ python trans.py --attr MF --model-dir ./result/[MODEL DIRECTORY] --src ../data/sentence_example.txt

Citation

@inproceedings{ishibashi-etal-2020-reflection,
    title = "Reflection-based Word Attribute Transfer",
    author = "Ishibashi, Yoichi  and
              Sudoh, Katsuhito  and
              Yoshino, Koichiro  and
              Nakamura, Satoshi",
    booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop",
    month = jul,
    year = "2020",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2020.acl-srw.8",
    pages = "51--58"
}

@article{ishibashi-etal-2021-reflection,
    title = "Reflection-based Word Attribute Transfer",
    author = "Ishibashi, Yoichi  and
              Sudoh, Katsuhito  and
              Yoshino, Koichiro  and
              Nakamura, Satoshi",
    journal = {Journal of Natural Language Processing},
    pages = "51--58"
    volume={28},
    number={1},
    year = {2021}
}

About

An implementation of reflection-based word attribute transfers (ACL 2020 SRW)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published