Code Monkey home page Code Monkey logo

query-biased-multi-document-abstractive-summarisation's Introduction

InfoRetProject

####################################################################

Topic: Query-biased Multi-Document Abstractive Summarisation

Authors: Amrit Singhal and Akshat Jindal

####################################################################

This is the implementation of all parts of the pipeline that we have proposed in our report for the project, which can be found in the repo.

Pre-requisites

  1. PyLucene
  2. NLTK
  3. Tensorflow

Creating Data Required

  1. Download the CNN news dataset from here.Only the stories are required. Keep it in some directory which will act as your < data_directory >.
  2. For generating query strings, run the following commands :
	python QueryLDA/CreateQueries.py

In the code for CreateQueries.py, set the the directory variable on line 73 as your <data_directory>. This creates a Queries.txt file in the QueryLDA directory.

	python QueryLDA/TopicGen.py

This creates LDA_500.pickle in the QueryLDA directory. We have provided the file already for direct use. This file has 50 queries, each representing a different topic.

Usage

  1. Build the index for the corpus.
	./buildIndex <data_directory>
  1. Run the extractive summarisation process:
	./QueryMultiDocSummarisation <Query_string> <paragraph_extraction_type> 

Paragraph_extraction_type

Parameter_Type Extraction_Process
1 TextTiling
2 Vector Space Method
3 TfIdf Method
4 Luhn Clusters
5 Query Biased LSA
  1. This will create a file RelevantDoc.txt in the main directory of the repo. This is the SuperDoc mentioned in the report.

  2. Following this, we need to perform abstractive summarisation on this SuperDoc. The model we chose was the pointer-generator networks, the implementation for which can be found here.

Samples

The Samples directory has a sample input query, the SuperDoc for it and the final Abstractive summary for it.

Future Works

We aim to improve upon the abstractive part also, by adding a query bias to it.

query-biased-multi-document-abstractive-summarisation's People

Contributors

amr4i avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.