I am trying to count a specific word “RT” in the text file I have. However, it needs to in capital so case-sensitive. I am trying the workflow that I attached but couldn’t quite sure which function to select in the dictionary tagger node for this. I also got error when I tried to export the output. I would be glad if you can help me with this. Thanks!
word count march data.knar.knwf (18.7 KB)
What about Rule Engine NODE? Use either like or matches
If you have installed Python you can try with Python String.count() function (https://pythonexamples.org/python-count-occurrences-of-word-in-text-file/). There are a lot of functions in Python which you can use to count words frequency (https://www.w3resource.com/python-exercises/string/python-data-type-string-exercise-12.php).
Here is an idea on how to start Count words.knwf (19.1 KB)
Or in the KNIME way Count words II.knwf (28.3 KB)
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.