Extract surrounding words close to a tag

Hello @annikawagner,

I do not think it is possible to get the neighbours of selected words using the term neighbourhood extractor. Since you’re dealing with a large dataset here are a couple of approaches that might help:

  1. Parallel Processing: To handle large datasets more efficiently, consider splitting your text into chunks and running the extraction process in parallel. This can help speed up processing by leveraging multiple CPU cores. You can find more information on how to set up parallel processing in KNIME here.

  2. Regex Extraction: For extracting specific contexts around your tagged words, you can use regular expressions. You can get details on how to use regex in KNIME with an example here.

I hope this helps.

Best,
Keerthan

2 Likes