Icon

20230904 Pikairos Just KNIME It Season 2 Challenge 23 Testing Your Work

You and your team are working on a lexicon-based sentiment analysis application, and created a component that encapsulates the calculation of sentiment scores. This component will be re-used in many workflows, so it is important to make sure that it is behaving correctly. A principled way of accomplishing this is through automated unit testing. Given a sample of the data this component receives as input (input golden data), and a small table with the corresponding expected outputs (output golden data), your goal is to create a workflow that automatically tests this component (testflow). Note: Read more about how to perform testing in KNIME here. Note 2: Read more about lexicon-based sentiment analysis here.

Challenge 23: Testing Your WorkYou and your team are working on a lexicon-based sentiment analysis application, and created a component that encapsulatesthe calculation of sentiment scores. This component will be re-used in many workflows, so it is important to make sure that it isbehaving correctly. A principled way of accomplishing this is through automated unit testing. Given a sample of the data thiscomponent receives as input (input golden data), and a small table with the corresponding expected outputs (output goldendata), your goal is to create a workflow that automatically tests this component (testflow). Note: Read more about how to performtesting in KNIME here. Note 2: Read more about lexicon-based sentiment analysis here. Original Data Test Data Input TableCapture theWorkflow Betweenthe Start and EndNodesCapture theWorkflow Betweenthe Start and EndNodesExecute Workflowthat was Capturedin the Previous StepOutput TableInput TableNode 9Node 20Output TableNode 22$POSITIVE+Sum(TF abs)$ = 0 => 5TRUE => $POSITIVE+Sum(TF abs)$Input Table Calculate Scores Table Reader CaptureWorkflow Start CaptureWorkflow End Workflow Executor Table Reader Table Reader Table DifferenceFinder Workflow Executor Table Reader Table DifferenceFinder Rule Engine Table Reader Compare TableResults Challenge 23: Testing Your WorkYou and your team are working on a lexicon-based sentiment analysis application, and created a component that encapsulatesthe calculation of sentiment scores. This component will be re-used in many workflows, so it is important to make sure that it isbehaving correctly. A principled way of accomplishing this is through automated unit testing. Given a sample of the data thiscomponent receives as input (input golden data), and a small table with the corresponding expected outputs (output goldendata), your goal is to create a workflow that automatically tests this component (testflow). Note: Read more about how to performtesting in KNIME here. Note 2: Read more about lexicon-based sentiment analysis here. Original Data Test Data Input TableCapture theWorkflow Betweenthe Start and EndNodesCapture theWorkflow Betweenthe Start and EndNodesExecute Workflowthat was Capturedin the Previous StepOutput TableInput TableNode 9Node 20Output TableNode 22$POSITIVE+Sum(TF abs)$ = 0 => 5TRUE => $POSITIVE+Sum(TF abs)$Input Table Calculate Scores Table Reader CaptureWorkflow Start CaptureWorkflow End Workflow Executor Table Reader Table Reader Table DifferenceFinder Workflow Executor Table Reader Table DifferenceFinder Rule Engine Table Reader Compare TableResults

Nodes

Extensions

Links