Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Text Mining (find all specified keywords within a cell and append all found to same field)

achank1ns
6 - Meteoroid

I'm wanting to text mine using a taxonomy but my company doesn't have the intelligence suite license for Machine Learning or Text Mining tools. After searching I came across an easy solution of using Find Replace but that seems to only want to find and replace the first instance when I want to find all keywords and append the same column with the words found using a delimiter. I thought by putting the Find Replace in a macro it would loop for all words but it didn't.

 

I would appreciate any help as I am very new to Alteryx and while I am usually good at Googling I can't seem to find an answer that doesn't involve the tools I don't have access to. 

 

File 1: Main Data Set:

 

Unique IDText
12345I am so mad I don't know what I will do.
12346I am beyond frustrated, this is ridiculous.
12347I am so happy!!!
12348This is unbelievable. How dare you do this to me, I will sue you! 

 

File 2: Taxonomy:

 

mad
frustrated
ridiculous
unbelievable
dare
sue

 

Desired Result:

 

Unique IDTextResults
12345I am so mad I don't know what I will do.mad
12346I am beyond frustrated, this is ridiculous.frustrated; ridiculous
12347I am so happy!!!null
12348This is unbelievable. How dare you do this to me, I will sue you! unbelievable; dare; sue 
4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@achank1ns 
I hope this would work for you.

0914-achank1ns.PNG

Garabujo7
Alteryx
Alteryx

Hello @achank1ns ,

 

I think what you need is some regex

 

Garabujo7_0-1631572802459.png

 

Attached you will find an example with the tokenize method that gets what you need.

 

Garabujo7_1-1631573110257.png

 

Garabujo7_2-1631573128278.png

 

 

Hope this helps

Gabriel

 

achank1ns
6 - Meteoroid

Thank you so much; this worked perfectly!!!

Qiu
21 - Polaris
21 - Polaris

@achank1ns 
Glad to help and thank you for the accept mark.

Labels
Top Solution Authors