Hub
Pricing About
WorkflowWorkflow

Challenge 38 - Word Windows - Solution

JustknimeitJustknimeit-38RegexMediumText processing
+1
Draft Latest edits on 
Mar 5, 2024 12:29 AM
Drag & drop
Like
Download workflow
Workflow preview
Challenge 38 - Word Windows - Solution 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!
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.2.1
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.1.0

    knime
  • Go to item
    KNIME Excel SupportTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.1.0

    knime
  • Go to item
    KNIME JavasnippetTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.1.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.1.0

    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits