You are a researcher concered with word usage and you would like to see how a target word is being used. To do this, you would like a method to extract 3 words before your target and 3 words after your target word if applicable (some target words are not preceeded by other words for instance).
In this challenge, you will be given various input which contains common traps for these kinds of searches such as line breaks, capitilization issues, punctuation, and no preceeding or following words. Our solution retains capitalization, is case insensitive, and captures multiple instances of the word depending on the window size. Please ignore misspellings.
Example input & output where "eggs" is the target:
Eggs are great. -> Eggs are great
I like eggz. -> ? (empty since no exact match)
I really do like eggs that (line break)
are covered in ketchup. -> really do like eggs that are covered (line can be retained if preferred)
I love eggs, but they need salt. -> I love eggs, but they need
Is KNIME secretly in love with EGGS??? -> in love with EGGS
Bonus: Make a component so others can play with your creation!
To use this workflow in KNIME, download it from the below URL and open it in KNIME:
Download WorkflowDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.