# TEXT MINNING - workflow by processing text

**URL:** <https://forum.knime.com/t/text-minning-workflow-by-processing-text/83293>\
**Category:** KNIME Community Hub\
**Tags:** text-mining\
**Created:** [September 17, 2024, 3:09pm UTC](https://forum.knime.com/t/text-minning-workflow-by-processing-text/83293 "2024-09-17T15:09:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![26AngelG](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/2/c67d28/32.png) [@26AngelG](https://forum.knime.com/u/26AngelG)\
**Post date:** [September 17, 2024, 3:09pm UTC](https://forum.knime.com/t/text-minning-workflow-by-processing-text/83293/1 "2024-09-17T15:09:05Z")

</div>

Hello everyone again,

For this project, I have been asked to conduct a study for an insurance company in their AUTO division. The task consists of analyzing the reports provided by clients on how their vehicle accidents occurred. An example Excel table is provided (attached) with the reports of all accidents, their occurrence, repair costs, make, model…

My idea for analyzing these reports is:

- Convert everything to lowercase
- Remove accents and punctuation marks
- Eliminate prepositions and determiners
- Analyze pronouns (to understand culpability if possible)

Once all these operations are performed, extract the most repeated words into a table where we can visualize the top 50 words with the highest total accumulation for these reports.

Therefore, I need to create a workflow with KNIME to perform this operation.

I have been analyzing several options, and this is what I came up with, let me know what you think.

### Step 1: Data Preparation

1. **Import Data** : Use the `Excel Reader` node to import your Excel table into KNIME.
2. **Data Cleaning** : Use nodes like `String Manipulation` to remove prepositions and determiners from the reports. You can create a list of common words to remove and apply a replacement function.

### Step 2: Word Frequency Analysis

1. **Tokenization** : Use the `Strings to Document` node followed by `Document Data Extractor` to convert the reports into documents and extract the words.
2. **Word Filtering** : Apply the `Stop Word Filter` node to remove common words that do not add value.
3. **Word Counting** : Use the `TF` (Term Frequency) node to count the frequency of each word in the reports.

### Step 3: Visualization

1. **Frequency Charts** : Use nodes like `Bar Chart` or `Word Cloud` to visualize the most frequent words.

---

<div class="post-metadata">

**Author:** ![izaychik63](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/i/e9a140/32.png) [@izaychik63](https://forum.knime.com/u/izaychik63)\
**Post date:** [September 17, 2024, 4:43pm UTC](https://forum.knime.com/t/text-minning-workflow-by-processing-text/83293/2 "2024-09-17T16:43:09Z")

</div>

You can look for some examples for ideas

> **[01\_Twitter\_meets\_PostgreSQL — NodePit](https://nodepit.com/workflow/com.knime.hub/Users/knime/Examples/08_Other_Analytics_Types/04_Social_Media/01_Twitter_meets_PostgreSQL)**
>
> This is a mini-workflow for Data WareHousing, in particular it archiviates daily tweets. History is saved in a PostgreSQL database (but it could be any database). This workflow is supposed to run every day. Every day it collects yesterday's tweets...

> **[Challenge 31 - Extracting Keywords from a Website - Solution – knime](https://hub.knime.com/knime/spaces/Just%20KNIME%20It!/Season%201/Challenge%2031%20-%20Extracting%20Keywords%20from%20a%20Website%20-%20Solution~0ip98Tk5VOvjFlcz/most-recent?pk_vid=fe79d49f8ebd7f6d1726590995725415)**
>
> Challenge 31 - Extracting Keywords from a Website - Solution What is this delicacy? For this challenge, you'll extract text from a web page, perform a keyword …

---

<div class="post-metadata">

**Author:** ![26AngelG](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/2/c67d28/32.png) [@26AngelG](https://forum.knime.com/u/26AngelG)\
**Post date:** [September 18, 2024, 9:39am UTC](https://forum.knime.com/t/text-minning-workflow-by-processing-text/83293/3 "2024-09-18T09:39:06Z")

</div>

Thanks @izaychik63 i will review it!!
