Using Concept Model Nuggets in a Stream

When using a Text Mining modeling node, you can generate either a concept model nugget or a category model nugget (through an interactive workbench session). The following example shows how to use a concept model in a simple stream.

Example: Statistics File node with the concept model nugget

The following example shows how to use the Text Mining concept model nugget.

Figure 1. Example stream: Statistics File node with a Text Mining concept model nugget
Example stream: Statistics File node with a Text Mining concept model nugget
  1. Statistics File node (Data tab). First, we added this node to the stream to specify where the text documents are stored.
    Figure 2. Statistics File node dialog box: Data tab
    Statistics File node dialog box: Data tab
  2. Text Mining concept model nugget (Model tab). Next, we added and connected a concept model nugget to the Statistics File node. We selected the concepts we wanted to use to score our data.
    Figure 3. Text Mining model nugget dialog box: Model tab
    Text Mining model nugget dialog box: Model tab
  3. Text Mining concept model nugget (Settings tab). Next, we defined the output format and selected Concepts as fields. One new field will be created in the output for each concept selected in the Model tab. Each field name will be made up of the concept name and the prefix "Concept_"
    Figure 4. Text Mining concept model nugget dialog box: Settings tab
    Text Mining concept model nugget dialog box: Settings tab
  4. Text Mining concept model nugget (Fields tab). Next, we selected the text field, Q2_What_do_you_like_least_about_this_portable_music_player, which is the field name coming from the Statistics File node. We also selected the option Text field represents: Actual text.
    Figure 5. Text Mining concept model nugget dialog box: Fields tab
    Text Mining concept model nugget dialog box: Fields tab
  5. Table node. Next, we attached a table node to see the results and executed the stream. The table output opens on screen.
Figure 6. Table output scrolled to show the concept flags
Table output scrolled to show the concept flags