├── .gitignore ├── .idea ├── deployment.xml ├── remote-mappings.xml └── vcs.xml ├── LICENSE.md ├── README.md ├── data └── Weibo │ ├── test_conv.txt │ ├── test_post.txt │ ├── test_tag.txt │ ├── train_conv.txt │ ├── train_post.txt │ ├── train_tag.txt │ ├── valid_conv.txt │ ├── valid_post.txt │ └── valid_tag.txt ├── evaluate.py ├── hashtag_distribution.PNG ├── model.png ├── onmt ├── Loss.py ├── ModelConstructor.py ├── Models.py ├── Optim.py ├── Trainer.py ├── Utils.py ├── __init__.py ├── io │ ├── AudioDataset.py │ ├── DatasetBase.py │ ├── IO.py │ ├── ImageDataset.py │ ├── TextDataset.py │ └── __init__.py ├── modules │ ├── AudioEncoder.py │ ├── Conv2Conv.py │ ├── ConvMultiStepAttention.py │ ├── CopyGenerator.py │ ├── Embeddings.py │ ├── Gate.py │ ├── GlobalAttention.py │ ├── ImageEncoder.py │ ├── MultiHeadedAttn.py │ ├── SRU.py │ ├── StackedRNN.py │ ├── StructuredAttention.py │ ├── Transformer.py │ ├── UtilClass.py │ ├── WeightNorm.py │ └── __init__.py ├── opts.py └── translate │ ├── Beam.py │ ├── Penalties.py │ ├── Translation.py │ ├── TranslationServer.py │ ├── Translator.py │ └── __init__.py ├── preprocess.py ├── sh ├── evaluate.sh ├── preprocess.sh ├── train.sh └── translate.sh ├── train.py └── translate.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/deployment.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/.idea/deployment.xml -------------------------------------------------------------------------------- /.idea/remote-mappings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/.idea/remote-mappings.xml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/README.md -------------------------------------------------------------------------------- /data/Weibo/test_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/data/Weibo/test_conv.txt -------------------------------------------------------------------------------- /data/Weibo/test_post.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/data/Weibo/test_post.txt -------------------------------------------------------------------------------- /data/Weibo/test_tag.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/data/Weibo/test_tag.txt -------------------------------------------------------------------------------- /data/Weibo/train_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/data/Weibo/train_conv.txt -------------------------------------------------------------------------------- /data/Weibo/train_post.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/data/Weibo/train_post.txt -------------------------------------------------------------------------------- /data/Weibo/train_tag.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/data/Weibo/train_tag.txt -------------------------------------------------------------------------------- /data/Weibo/valid_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/data/Weibo/valid_conv.txt -------------------------------------------------------------------------------- /data/Weibo/valid_post.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/data/Weibo/valid_post.txt -------------------------------------------------------------------------------- /data/Weibo/valid_tag.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/data/Weibo/valid_tag.txt -------------------------------------------------------------------------------- /evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/evaluate.py -------------------------------------------------------------------------------- /hashtag_distribution.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/hashtag_distribution.PNG -------------------------------------------------------------------------------- /model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/model.png -------------------------------------------------------------------------------- /onmt/Loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/Loss.py -------------------------------------------------------------------------------- /onmt/ModelConstructor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/ModelConstructor.py -------------------------------------------------------------------------------- /onmt/Models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/Models.py -------------------------------------------------------------------------------- /onmt/Optim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/Optim.py -------------------------------------------------------------------------------- /onmt/Trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/Trainer.py -------------------------------------------------------------------------------- /onmt/Utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/Utils.py -------------------------------------------------------------------------------- /onmt/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/__init__.py -------------------------------------------------------------------------------- /onmt/io/AudioDataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/io/AudioDataset.py -------------------------------------------------------------------------------- /onmt/io/DatasetBase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/io/DatasetBase.py -------------------------------------------------------------------------------- /onmt/io/IO.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/io/IO.py -------------------------------------------------------------------------------- /onmt/io/ImageDataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/io/ImageDataset.py -------------------------------------------------------------------------------- /onmt/io/TextDataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/io/TextDataset.py -------------------------------------------------------------------------------- /onmt/io/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/io/__init__.py -------------------------------------------------------------------------------- /onmt/modules/AudioEncoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/AudioEncoder.py -------------------------------------------------------------------------------- /onmt/modules/Conv2Conv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/Conv2Conv.py -------------------------------------------------------------------------------- /onmt/modules/ConvMultiStepAttention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/ConvMultiStepAttention.py -------------------------------------------------------------------------------- /onmt/modules/CopyGenerator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/CopyGenerator.py -------------------------------------------------------------------------------- /onmt/modules/Embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/Embeddings.py -------------------------------------------------------------------------------- /onmt/modules/Gate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/Gate.py -------------------------------------------------------------------------------- /onmt/modules/GlobalAttention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/GlobalAttention.py -------------------------------------------------------------------------------- /onmt/modules/ImageEncoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/ImageEncoder.py -------------------------------------------------------------------------------- /onmt/modules/MultiHeadedAttn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/MultiHeadedAttn.py -------------------------------------------------------------------------------- /onmt/modules/SRU.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/SRU.py -------------------------------------------------------------------------------- /onmt/modules/StackedRNN.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/StackedRNN.py -------------------------------------------------------------------------------- /onmt/modules/StructuredAttention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/StructuredAttention.py -------------------------------------------------------------------------------- /onmt/modules/Transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/Transformer.py -------------------------------------------------------------------------------- /onmt/modules/UtilClass.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/UtilClass.py -------------------------------------------------------------------------------- /onmt/modules/WeightNorm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/WeightNorm.py -------------------------------------------------------------------------------- /onmt/modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/modules/__init__.py -------------------------------------------------------------------------------- /onmt/opts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/opts.py -------------------------------------------------------------------------------- /onmt/translate/Beam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/translate/Beam.py -------------------------------------------------------------------------------- /onmt/translate/Penalties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/translate/Penalties.py -------------------------------------------------------------------------------- /onmt/translate/Translation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/translate/Translation.py -------------------------------------------------------------------------------- /onmt/translate/TranslationServer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/translate/TranslationServer.py -------------------------------------------------------------------------------- /onmt/translate/Translator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/translate/Translator.py -------------------------------------------------------------------------------- /onmt/translate/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/onmt/translate/__init__.py -------------------------------------------------------------------------------- /preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/preprocess.py -------------------------------------------------------------------------------- /sh/evaluate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/sh/evaluate.sh -------------------------------------------------------------------------------- /sh/preprocess.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/sh/preprocess.sh -------------------------------------------------------------------------------- /sh/train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/sh/train.sh -------------------------------------------------------------------------------- /sh/translate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/sh/translate.sh -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/train.py -------------------------------------------------------------------------------- /translate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuewang-cuhk/HashtagGeneration/HEAD/translate.py --------------------------------------------------------------------------------