All Projects → alexeyev → abae-pytorch

alexeyev / abae-pytorch

Licence: MIT License
PyTorch implementation of 'An Unsupervised Neural Attention Model for Aspect Extraction' by He et al. ACL2017'

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to abae-pytorch

Kate
Code & data accompanying the KDD 2017 paper "KATE: K-Competitive Autoencoder for Text"
Stars: ✭ 135 (+159.62%)
Mutual labels:  autoencoder, topic-modeling
NMFADMM
A sparsity aware implementation of "Alternating Direction Method of Multipliers for Non-Negative Matrix Factorization with the Beta-Divergence" (ICASSP 2014).
Stars: ✭ 39 (-25%)
Mutual labels:  topic-modeling, unsupervised-machine-learning
auto-gfqg
Automatic Gap-Fill Question Generation
Stars: ✭ 17 (-67.31%)
Mutual labels:  topic-modeling, unsupervised-machine-learning
Alae
[CVPR2020] Adversarial Latent Autoencoders
Stars: ✭ 3,178 (+6011.54%)
Mutual labels:  autoencoder, pytorch-implementation
tldr
TLDR is an unsupervised dimensionality reduction method that combines neighborhood embedding learning with the simplicity and effectiveness of recent self-supervised learning losses
Stars: ✭ 95 (+82.69%)
Mutual labels:  unsupervised-machine-learning, pytorch-implementation
photometric optimization
Photometric optimization code for creating the FLAME texture space and other applications
Stars: ✭ 271 (+421.15%)
Mutual labels:  pytorch-implementation
Wavelet-like-Auto-Encoder
No description or website provided.
Stars: ✭ 61 (+17.31%)
Mutual labels:  autoencoder
Relation-Network-PyTorch
Implementation of Relation Network and Recurrent Relational Network using PyTorch v1.3. Original papers: (RN) https://arxiv.org/abs/1706.01427 (RRN): https://arxiv.org/abs/1711.08028
Stars: ✭ 17 (-67.31%)
Mutual labels:  pytorch-implementation
Product-Categorization-NLP
Multi-Class Text Classification for products based on their description with Machine Learning algorithms and Neural Networks (MLP, CNN, Distilbert).
Stars: ✭ 30 (-42.31%)
Mutual labels:  topic-modeling
time-series-autoencoder
📈 PyTorch dual-attention LSTM-autoencoder for multivariate Time Series 📈
Stars: ✭ 198 (+280.77%)
Mutual labels:  autoencoder
NoisyStudent
"Self-training with Noisy Student improves ImageNet classification" pytorch implementation
Stars: ✭ 31 (-40.38%)
Mutual labels:  pytorch-implementation
torch-metrics
Metrics for model evaluation in pytorch
Stars: ✭ 99 (+90.38%)
Mutual labels:  pytorch-implementation
differentiable-morphogenesis
experimenting with differentiable models of morphogenesis 🔬 🦠
Stars: ✭ 38 (-26.92%)
Mutual labels:  pytorch-implementation
head-qa
HEAD-QA: A Healthcare Dataset for Complex Reasoning
Stars: ✭ 20 (-61.54%)
Mutual labels:  unsupervised-machine-learning
FedLab-benchmarks
Standard federated learning implementations in FedLab and FL benchmarks.
Stars: ✭ 49 (-5.77%)
Mutual labels:  pytorch-implementation
Twitter-Trends
Twitter Trends is a web-based application that automatically detects and analyzes emerging topics in real time through hashtags and user mentions in tweets. Twitter being the major microblogging service is a reliable source for trends detection. The project involved extracting live streaming tweets, processing them to find top hashtags and user …
Stars: ✭ 82 (+57.69%)
Mutual labels:  topic-modeling
attention-sampling-pytorch
This is a PyTorch implementation of the paper: "Processing Megapixel Images with Deep Attention-Sampling Models".
Stars: ✭ 25 (-51.92%)
Mutual labels:  pytorch-implementation
simclr-pytorch
PyTorch implementation of SimCLR: supports multi-GPU training and closely reproduces results
Stars: ✭ 89 (+71.15%)
Mutual labels:  pytorch-implementation
haskell-vae
Learning about Haskell with Variational Autoencoders
Stars: ✭ 18 (-65.38%)
Mutual labels:  autoencoder
MelNet-SpeechGeneration
Implementation of MelNet in PyTorch to generate high-fidelity audio samples
Stars: ✭ 19 (-63.46%)
Mutual labels:  pytorch-implementation

ABAE-PyTorch

Yet another PyTorch implementation of the model described in the paper An Unsupervised Neural Attention Model for Aspect Extraction by He, Ruidan and Lee, Wee Sun and Ng, Hwee Tou and Dahlmeier, Daniel, ACL2017.

NOTA BENE: as of December 2021, gensim>=4.1.0 and hydra-core>=1.1.0 are required.

Example

For a working example of a whole pipeline please refer to example_run.sh

Let's get some data:

wget http://snap.stanford.edu/data/amazon/productGraph/categoryFiles/reviews_Cell_Phones_and_Accessories_5.json.gz
gunzip reviews_Cell_Phones_and_Accessories_5.json.gz    
python3 custom_format_converter.py reviews_Cell_Phones_and_Accessories_5.json

Then we need to train the word vectors:

python3 word2vec.py reviews_Cell_Phones_and_Accessories_5.json.txt

And run

python main.py model.aspects_number=35 data.path=$DATA_NAME.json.txt model.log_progress_steps=1000

Please see all passable params in the configs/ directory. For a working example of a whole pipeline please refer to example_run.sh

I acknowledge the implementation is raw, code modification requests and issues are welcome.

Thanks for contributions

@alexdevmotion

TODOs

  • Evaluation: PMI, NPMI, LCP, L1/L2/coord/cosine (Nikolenko SIGIR'16), ...
  • Aspects prediction on text + visualization
  • Saving the model, aspects, etc.

How to cite

Greatly appreciated, if you use this work.

@misc{abaepytorch2019alekseev,
  title     = {{alexeyev/abae-pytorch: ABAE, PyTorch implementation}},
  year      = {2019},
  url       = {https://github.com/alexeyev/abae-pytorch},
  language  = {english}
}

Please also see

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].