using descretize by frequency

abeetbhat1995
abeetbhat1995 New Altair Community Member
edited November 2024 in Community Q&A

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

  • Telcontar120
    Telcontar120 New Altair Community Member

    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.