GithubHelp home page GithubHelp logo

patent-summarizer's Introduction

Patent-Summarizer

Patent abstract summarization using recurrent neural networks.

Abstract

This work presents an abstractive summarization model for extracting the main ideas from patent abstracts and summarizing them into a title. The model uses an encoder-decoder Recurrent Neural Network (RNN) with attention mechanism. The evaluation is performed on a patent dataset specifically accumulated for this work. The dataset is kept generic and contains patents from multiple domains.

Dataset

We used patents whose publication dates were from year 2000 and onwards. This also al- lowed us to avoid old information in the text. We also made sure that the abstract information was only in English while creating the dataset. The final dataset consisted of 25,743 patents. We split this dataset into training, validation and testing set, containing 16,000, 4,000 and 5,743 patents respectively. To ensure that our model generalized well to different categories of patents, we explicitly collected patents from multiple diverse fields.

For word embeddings, we used pre-trained GloVe embeddings(http://nlp.stanford.edu/data/glove.840B.300d.zip)

Running the model

For training a model, we need to specify a name for our model. E.g., with name model-name, run:

python main.py model-name

To load a previously saved model, set the load flag in main.py to True.

Evaluate the model

For evaluating a model model-name on given patent dataset data-set, run:

python evaluation.py model-name data-set

The format of dataset files should be similar to the files in /data folder.

patent-summarizer's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

akbari59

patent-summarizer's Issues

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.