Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/berecat/gpt2_smr
- Owner: berecat
- License: other
- Created: 2021-12-16T13:09:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-02T17:58:29.000Z (over 1 year ago)
- Last Synced: 2024-09-12T03:18:49.525Z (4 months ago)
- Topics: gpt-2, huggingface, huggingface-transformers, nlp, nlu, text-summarization
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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).