Term Neighborhood extractor

Hello

I’m trying to get the N surrounding words to a specific term in a text. The node in question works fine, but it forces me to use a post-filter to get only the neighbourhoods that work for me. Also, when the texts to be searched are very long, the amount of records obtained is excessively large, and it takes a long time.

Is there a node like the Term Neighborhood Extractor, but that only extracts the neighbourhoods of specific terms? Or is there a way to make a nice improvement to that node?

Thanks