Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does headliner support beam search during decoding? #21

Open
zhangshouleibupt opened this issue Oct 21, 2020 · 2 comments
Open

does headliner support beam search during decoding? #21

zhangshouleibupt opened this issue Oct 21, 2020 · 2 comments

Comments

@zhangshouleibupt
Copy link

hello,i want to kown does headliner supper beam search way when pridection,if it support, how can i use it,the document dont mention it, and when i check the source code, it seems you use the greedy search during decoding.
many thanks.

@cschaefer26
Copy link
Collaborator

cschaefer26 commented Oct 23, 2020

Hi, unfortunately I didnt have time to maintain the master branch of the repo. There is a branch where I implemented beam search: https://github.com/as-ideas/headliner/blob/improve_bert_beam/headliner/model/summarizer_bert.py, you can use summarizer.predict_beam_search() and specify the beam width and it returns the top k paths.

@zhangshouleibupt
Copy link
Author

Hi, unfortunately I didnt have time to maintain the master branch of the repo. There is a branch where I implemented beam search: https://github.com/as-ideas/headliner/blob/improve_bert_beam/headliner/model/summarizer_bert.py, you can use summarizer.predict_beam_search() and specify the beam width and it returns the top k paths.

Ok,i will try it .many thanks.by the way, the framwoke is awesome. it really help me a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants