Using the Text Topic Node

This example shows you how to create topics using the Text Topic node. This example assumes that you have performed Using the Text Filter Node, and builds off the process flow diagram created there.
  1. Select the Text Mining tab on the toolbar, and drag a Text Topic node into the diagram workspace.
  2. Connect the Text Filter node to the Text Topic node.
    Process flow diagram
  3. In the diagram workspace, right-click the Text Topic node and select Run. Click Yes in the Confirmation dialog box that appears. Click Results in the Run Status dialog box when the node finishes running.
  4. Select the Topics table to view the topics that have been created with a default run of the Text Topic node.
    Topics table
    Note: If you ran the optional spell-checking step in Using the Text Filter Node, then the Topics shown here and those represented in subsequent steps might be different from what you see.
  5. Select the Number of Documents by Topics chart to see a topic by the number of documents that it contains.
    Number of Documents by Topics Chart
    Note: You might need to resize the default graph to see the topic ID values.
    In addition to multi-term topics, you can use the Text Topic node to create single-term topics or to create your own topics.
  6. Close the Results window, and select the Text Topic node.
  7. Select the Number of Single-term Topics property, type 10, and press Enter on your keyboard.
  8. Click the Ellipses icon for the User Topics property.
  9. In the User Topics dialog box, click the Add button twice to create two rows. Enter the terms company and president, each with a weight of 0.5, and specify the topic company and president for both.
    User Topics Window
  10. Click OK.
  11. Right-click the Text Topic node and select Run. Select Yes in the Confirmation dialog box, and then Results in the Run Status dialog box when the node finishes running.
  12. Select the Topics table. Notice that 10 new single-term topics have been created along with the topic that you specified in the User Topics dialog box.
    Topics Table
  13. Select the Number of Documents by Topics window to see the multi-term, single-term, and user-created topics by the number of documents that they contain.
    Number of Documents by Topics Chart
    You can use the Interactive Topic Viewer to view and modify topic properties.
  14. Close the Results window, and select the Text Topic node. Click the Ellipses icon for the Topic Viewer property.
    Interactive Topic Viewer
    In the Interactive Topic Viewer, you can change the topic name, term and document cutoff values, and the topic weight.
  15. Select the topic value “company and president” in the Topics table and rename the topic to company. Select the topic weight for the term “company” in the Terms table, and change it to 0.25. Click Recalculate.
    Interactive Topic Viewer
  16. Close the Interactive Topic Viewer, and select No when prompted to save your changes. For more information about the Interactive Topic Viewer, see the Interactive Topic Viewer topic in the SAS Text Miner help.