nlpyang / PreSumm

code for EMNLP 2019 paper Text Summarization with Pretrained Encoders
MIT License
1.29k stars 465 forks source link

Is there a plug and play tool for PreSumm? #169

Open Aditya94A opened 4 years ago

Aditya94A commented 4 years ago

I was wondering if there are any implementations that can be downloaded and run as a simple executable or CLI tool

$> ./presumm.sh "My news article text..."
> [Output summary] "My news...."

I'm new to ML and I'm trying to figure out the shortest path towards packaging up PreSumm/BERT implementation (with a news trained model) in a microservice and use it in a real project. Any advice would be much appreciated :)

sarath-nookaraaju commented 3 years ago

Hi

Authors did update their dev branch to the closest to plug-and-play, as mentioned by them below:

Updates Jan 22 2020: Now you can Summarize Raw Text Input!. Switch to the dev branch, and use -mode test_text and use -text_src $RAW_SRC.TXT to input your text file. Please still use master branch for normal training and evaluation, dev branch should be only used for test_text mode.