我需要帮助来构建一个查询句子中的单词,一旦发现它应该在搜索到的单词之前和之后显示2个单词。
示例1: -
Input Sentence :- "Hi my computer is down at 10 am due to power issue"
search keyword ( which is pre-defined ) :- down
expected output :- "computer is down at 10" ( 2 words before and after of the searched keyword )
示例2: -
Input Sentence :- "Hi my database is down at morning 8am due to memory"
search keyword ( which is pre-defined ) :- down
expected output :- "database is down at morning" ( 2 words before and after of the searched keyword )
对于Query构建,请将表名视为"输入"和保留句子的列为"描述"
感谢您的帮助!!
PUNIT