kenchan0226 / keyphrase-generation-rl

Code for the ACL 19 paper "Neural Keyphrase Generation via Reinforcement Learning with Adaptive Rewards"
https://arxiv.org/abs/1906.04106
MIT License
107 stars 15 forks source link

Confusion regarding the function, `check_present_keyphrases` #3

Closed wasiahmad closed 5 years ago

wasiahmad commented 5 years ago

I was looking at the function, check_present_keyphrases. I am unable to understand the difference between match_by_word and match_by_string given that both the source and the keyphrases are stemmed!!

As per my understanding, both the matching condition basically checks whether a keyphrase appeared as a contiguous span in the source text. Please correct me if I am wrong.

wasiahmad commented 5 years ago

I think I got my answer!!