custom Keyword inclusion #248
-
Problem descriptionMy requirement is, the generated summary should have specific keywords from the input text. Steps/code/corpus to reproduceI need the pipeline component to accept keywords as input parameter. nlp.add_pipe(tr.PipelineComponent, name="textrank", last=True, custom_keywords=keywords) For example,
OutputApple is red. As in above example, I need a parameter to include custom keywords and those keywords must be present in the summarized text. Is there a way to do this? or any function that does this present as part of the library? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Thank you @Vignesh9395, that capability is going in with the upcoming |
Beta Was this translation helpful? Give feedback.
-
Thank you @ceteri , looking forward! |
Beta Was this translation helpful? Give feedback.
-
Hi @Vignesh9395 , |
Beta Was this translation helpful? Give feedback.
Hi @Vignesh9395 ,
Can you try your use case with biased textrank. I think with an appropriate choice of
focus
andbias
you should be able to bring such sentences on top of the summary.Please refer sample.py for the usage.
@ceteri