Shivanandroy / KeyPhraseTransformer

KeyPhraseTransformer lets you quickly extract key phrases, topics, themes from your text data with T5 transformer | Keyphrase extraction | Keyword extraction
MIT License
97 stars 13 forks source link

Does the system guarantee the key phrases as substring? #8

Open sayef opened 1 year ago

sayef commented 1 year ago

Hi,

Thanks for this useful library. I was just wondering if the key phrases returned by the method always guarantee that the keywords can be found in the doc that is being processed. If not, would you accept a pull request that will handle the situation? For example: using a parameter such as guarantee_substring will check if they are substring and return only those substrings along with their start and end indices in the main string.

Thanks in advance.