santhoshkolloju / Abstractive-Summarization-With-Transfer-Learning

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

Does the code produce verbal summaries? #4

Closed Vibha111094 closed 5 years ago

Vibha111094 commented 5 years ago

What additional changes are required in the code so that I can see the actual summary produced for a given paragraph.

Vibha111094 commented 5 years ago

As I understand this involves mapping the hypotheses ids to the words in the vocabulary . Is this understanding correct?

Vibha111094 commented 5 years ago

I was able to convert it into words ,however the bert'svocabulary itself has Wordpiece representations . Anyway to solve this ?

santhoshkolloju commented 5 years ago

" ". Join(hwords).replace(" ##", "")