All Projects → udibr → Headlines

udibr / Headlines

Licence: mit
Automatically generate headlines to short articles

Projects that are alternatives of or similar to Headlines

Deepnlp Models Pytorch
Pytorch implementations of various Deep NLP models in cs-224n(Stanford Univ)
Stars: ✭ 2,760 (+434.88%)
Mutual labels:  jupyter-notebook, rnn
Lstm Human Activity Recognition
Human Activity Recognition example using TensorFlow on smartphone sensors dataset and an LSTM RNN. Classifying the type of movement amongst six activity categories - Guillaume Chevalier
Stars: ✭ 2,943 (+470.35%)
Mutual labels:  jupyter-notebook, rnn
Pytorch Sentiment Analysis
Tutorials on getting started with PyTorch and TorchText for sentiment analysis.
Stars: ✭ 3,209 (+521.9%)
Mutual labels:  jupyter-notebook, rnn
Doc Han Att
Hierarchical Attention Networks for Chinese Sentiment Classification
Stars: ✭ 206 (-60.08%)
Mutual labels:  jupyter-notebook, rnn
Fast Pytorch
Pytorch Tutorial, Pytorch with Google Colab, Pytorch Implementations: CNN, RNN, DCGAN, Transfer Learning, Chatbot, Pytorch Sample Codes
Stars: ✭ 346 (-32.95%)
Mutual labels:  jupyter-notebook, rnn
Natural Language Processing With Tensorflow
Natural Language Processing with TensorFlow, published by Packt
Stars: ✭ 222 (-56.98%)
Mutual labels:  jupyter-notebook, rnn
FocusSeq2Seq
[EMNLP 2019] Mixture Content Selection for Diverse Sequence Generation (Question Generation / Abstractive Summarization)
Stars: ✭ 109 (-78.88%)
Mutual labels:  generation, summarization
Keraspp
코딩셰프의 3분 딥러닝, 케라스맛
Stars: ✭ 178 (-65.5%)
Mutual labels:  jupyter-notebook, rnn
Thesemicolon
This repository contains Ipython notebooks and datasets for the data analytics youtube tutorials on The Semicolon.
Stars: ✭ 345 (-33.14%)
Mutual labels:  jupyter-notebook, rnn
Sars tutorial
Repository for the tutorial on Sequence-Aware Recommender Systems held at TheWebConf 2019 and ACM RecSys 2018
Stars: ✭ 320 (-37.98%)
Mutual labels:  jupyter-notebook, rnn
Deep Learning With Python
Deep learning codes and projects using Python
Stars: ✭ 195 (-62.21%)
Mutual labels:  jupyter-notebook, rnn
Easy Deep Learning With Keras
Keras tutorial for beginners (using TF backend)
Stars: ✭ 367 (-28.88%)
Mutual labels:  jupyter-notebook, rnn
Nn compression
Stars: ✭ 193 (-62.6%)
Mutual labels:  jupyter-notebook, rnn
Text summarization with tensorflow
Implementation of a seq2seq model for summarization of textual data. Demonstrated on amazon reviews, github issues and news articles.
Stars: ✭ 226 (-56.2%)
Mutual labels:  jupyter-notebook, summarization
Stylenet
A cute multi-layer LSTM that can perform like a human 🎶
Stars: ✭ 187 (-63.76%)
Mutual labels:  jupyter-notebook, rnn
Pytorch Seq2seq
Tutorials on implementing a few sequence-to-sequence (seq2seq) models with PyTorch and TorchText.
Stars: ✭ 3,418 (+562.4%)
Mutual labels:  jupyter-notebook, rnn
Rnn For Joint Nlu
Pytorch implementation of "Attention-Based Recurrent Neural Network Models for Joint Intent Detection and Slot Filling" (https://arxiv.org/abs/1609.01454)
Stars: ✭ 176 (-65.89%)
Mutual labels:  jupyter-notebook, rnn
Tensorflow2 Docs Zh
TF2.0 / TensorFlow 2.0 / TensorFlow2.0 官方文档中文版
Stars: ✭ 177 (-65.7%)
Mutual labels:  jupyter-notebook, rnn
Deeplearning.ai Assignments
Stars: ✭ 268 (-48.06%)
Mutual labels:  jupyter-notebook, rnn
Text summurization abstractive methods
Multiple implementations for abstractive text summurization , using google colab
Stars: ✭ 359 (-30.43%)
Mutual labels:  jupyter-notebook, rnn

Automatically generate headlines to short articles

Twitter followers

This project attempts to reproduce the results in the paper: Generating News Headlines with Recurrent Neural Networks

How to run

Software

Data

It is assumed that you already have training and test data. The data is made from many examples (I'm using 684K examples), each example is made from the text from the start of the article, which I call description (or desc), and the text of the original headline (or head). The texts should be already tokenized and the tokens separated by spaces.

Once you have the data ready save it in a python pickle file as a tuple: (heads, descs, keywords) were heads is a list of all the head strings, descs is a list of all the article strings in the same order and length as heads. I ignore the keywords information so you can place None.

Build a vocabulary of words

The vocabulary-embedding notebook describes how a dictionary is built for the tokens and how an initial embedding matrix is built from GloVe

Train a model

train notebook describes how a model is trained on the data using Keras

Use model to generate new headlines

predict generate headlines by the trained model and showes the attention weights used to pick words from the description. The text generation includes a feature which was not described in the original paper, it allows for words that are outside the training vocabulary to be copied from the description to the generated headline.

Examples of headlines generated

Good (cherry picking) examples of headlines generated cherry picking of generated headlines cherry picking of generated headlines

Examples of attention weights

attention weights

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].