santhoshkolloju / Abstractive-Summarization-With-Transfer-Learning

Abstractive summarisation using Bert as encoder and Transformer Decoder
406 stars 99 forks source link

How can I run inference.py locally and in a normal way rather than using a flask app, which I can hardly figure out how it works? #25

Open gm0616 opened 5 years ago

santhoshkolloju commented 5 years ago

You can copy the inference code and run it in a jupyter notebook removing the flask part.

duyuankai1992 commented 5 years ago

I don't know what to put in the story and summary? String? story = "" summary = "" hwords = infer_single_example(story, summary, tokenizer)

Simons2017 commented 5 years ago

I don't know what to put in the story and summary? String? story = "" summary = "" hwords = infer_single_example(story, summary, tokenizer)

Hello, I met the same problem. How did you solve it?@duyuankai1992

OneLittleRin commented 4 years ago

I don't know what to put in the story and summary? String? story = "" summary = "" hwords = infer_single_example(story, summary, tokenizer)

Hello, I met the same problem. How did you solve it?@duyuankai1992

I think those are txt files in data that can be to initialized...