Hub
Pricing About
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
  • KNIME Community Hub
  • knime
  • Spaces
  • Just KNIME It!
  • Challenge 38 - Word Windows - Solution
WorkflowWorkflow

Challenge 38 - Word Windows - Solution

Justknimeit Justknimeit-38 Regex
KNIME profile image

Last edited: 

Drag & drop
Like
Download workflow
Copy short link
Workflow preview
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

Used extensions & nodes

Created with KNIME Analytics Platform version 4.6.3
  • Go to item
    KNIME Base nodes Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.2

    KNIME profile image
    knime
  • Go to item
    KNIME Excel Support Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.2

    KNIME profile image
    knime
  • Go to item
    KNIME Javasnippet Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.0

    KNIME profile image
    knime
  • Go to item
    KNIME Quick Forms Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.2

    KNIME profile image
    knime
  1. Go to item
  2. Go to item
  3. Go to item
  4. Go to item
  5. Go to item
  6. Go to item
Loading deployments
Loading ad hoc executions

Legal

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

Discussion
Discussions are currently not available, please try again later.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Business Hub
© 2023 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits