pick_only_key_sentence

pick_only_key_sentence(text, keyword)

If we want to get all sentence with particular keyword. We can use below function.

Parameters

text: str Text selected to apply transformation.

keyword: str Word to search within the phrase.

Examples:

sentence="People are fighting with covid these days.
Economy has fallen down.How will we survice covid"
pick_only_key_sentence(sentence,'covid')
    >>> ['People are fighting with covid these days',
'How will we survice covid']