Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/berecat/gpt2_smr

Text summarization using GPT2 from Hugging Face.
https://github.com/berecat/gpt2_smr

gpt-2 huggingface huggingface-transformers nlp nlu text-summarization

Last synced: about 2 months ago
JSON representation

Text summarization using GPT2 from Hugging Face.

Awesome Lists containing this project

README

        

# README #

Text summarization using **GPT2** from [Hugging Face](https://huggingface.co/).

### Requirements ###

* **transformers**

pip3 install transformers

* **bert-extractive-summarizer**

pip3 install bert-extractive-summarizer

* **sentencepiece**

pip3 install sentencepiece

### How to Run ###

python3 gpt2_summarizer.py -f [file path] -min [min length] -max [max length]

* -f: file path.
* -min: minimum summary length.
* -max: maximum summary length (float).