Icon

jKi-34

jKi-34
Challenge 34: Word ScrambleLevel: MediumDescription: One of your tasks at work is to train a model using sentences with the correct word context (i.e., words in a sentence following ameaningful and correct order). However, to train such model, you also need to create a dataset of words used in an incorrect context. You canthink of this task as a version of Negative Sampling - a neat technique for training the famous Word2Vec model. Concretely, in this challengeyou will create a workflow that takes a sentence and scrambles the order of its words. You can create a small sample of sentences to test yourwork with the Table Creator node.InputI like cats.Outputcats. like IHint: Our simple solution only uses 5 nodes, but the permutations are not exactly random. Conversely, our more complex solution uses morethan 15 nodes and 2 loops, as well as the Random Numbers Generator node, to create truly scrambled sentences. Bonus: Create a solutionwith true randomization without using any loops. Node 1Node 2Node 3choose newseed to changeword orderNode 5Node 6Node 7Node 8Node 9 Table Creator Cell Splitter Transpose Random NumberAssigner Sorter Transpose Column Combiner Column Filter Row Filter Challenge 34: Word ScrambleLevel: MediumDescription: One of your tasks at work is to train a model using sentences with the correct word context (i.e., words in a sentence following ameaningful and correct order). However, to train such model, you also need to create a dataset of words used in an incorrect context. You canthink of this task as a version of Negative Sampling - a neat technique for training the famous Word2Vec model. Concretely, in this challengeyou will create a workflow that takes a sentence and scrambles the order of its words. You can create a small sample of sentences to test yourwork with the Table Creator node.InputI like cats.Outputcats. like IHint: Our simple solution only uses 5 nodes, but the permutations are not exactly random. Conversely, our more complex solution uses morethan 15 nodes and 2 loops, as well as the Random Numbers Generator node, to create truly scrambled sentences. Bonus: Create a solutionwith true randomization without using any loops. Node 1Node 2Node 3choose newseed to changeword orderNode 5Node 6Node 7Node 8Node 9 Table Creator Cell Splitter Transpose Random NumberAssigner Sorter Transpose Column Combiner Column Filter Row Filter

Nodes

Extensions

Links