BERT-Keyword-Extractor icon indicating copy to clipboard operation
BERT-Keyword-Extractor copied to clipboard

Can the model be used to extract keyword from a paragraph?

Open jennifer1995 opened this issue 5 years ago • 4 comments

Can the model be used to extract keyword from a paragraph, that consists of several sentences? Thank you.

jennifer1995 avatar Nov 27 '20 03:11 jennifer1995

I went error when using keyword-extractor.py. I essentially changed the input to a file in the test folder. It didn't work and showed this File "keyword-extractor.py", line 33, in keywordextract attention_mask=segments_tensors). I am thinking to change the developer's code later, so that we could use this model to predict the whole passage or a phragraph.

HarrisonLL avatar Sep 23 '21 01:09 HarrisonLL

@LidingLi @jennifer1995 have you able to apply this model on whole paragraph to extract keywords? Thank you so much.

mr-noman avatar Feb 21 '22 09:02 mr-noman

No. I later switched to using BERT-KPE. That model can run keyword extraction on a bunch of documents and ranks pretty high in the Microsoft OpenKP competition. Consider using that.

HarrisonLL avatar Feb 21 '22 15:02 HarrisonLL

Alright and Thank you so much @LidingLi

mr-noman avatar Feb 22 '22 06:02 mr-noman