using descretize by frequency


i want to count the no. of occurences of each word in a text document....i think i can do it using descretize by frequency but i dont know how to do it.....thanx in advance
Tagged:
0
💬0 Comments | 🔥0 Discussions | 👤0 Members | 🔌0 Online |
i want to count the no. of occurences of each word in a text document....i think i can do it using descretize by frequency but i dont know how to do it.....thanx in advance
Answers
Actually, the easiest way to do that is to Tokenize your document by words and then create the word vector inside the Process Documents parameters based on term occurrences. The resulting word list will contain a count of all occurrences of your words and your dataset will have a corresponding attribute for each word and its count for each document.
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts