neulab / guided_summarization

GSum: A General Framework for Guided Neural Abstractive Summarization
MIT License
113 stars 27 forks source link

Question about keyword.py #21

Closed gmichalo closed 3 years ago

gmichalo commented 3 years ago

I was wondering why you separate the keywords with the word [SEP]?

out.write(' [SEP] '.join(new_words)+'\n')

I am mostly asking because if I am understanding the code correctly the [SEP] is between any two keywords and not keywords from different sentences.

zdou0830 commented 3 years ago

Hi, your understanding is correct and it's just a heuristic. Maybe inserting [SEP] between keywords from different sentences would be better but we didn't try other strategies.