BookmarkSubscribeRSS Feed
vioravis
Calcite | Level 5

I want to get the Document Term matrix. The following link explains how to get it using the SAS Text Miner Node but the node is not available in Text Miner 5.1

https://communities.sas.com/thread/9183?start=0&tstart=0

Can someone help me with how to get the matrix in TM 5.1?

Thank you.

Ravi

1 REPLY 1
AnnKuo
SAS Employee

Since SAS Text Miner has incorporated many changes and enhancements after version 5.1, the following response is tailored towards the newer release (version 12.1 and after.)

 

You can use the attached SAS code in a SAS Code node after a Text Filter node to create a document-by-term data set. 

 

Here are the steps:

  1. Create a new SAS Code node and connect it after a Text Filter node.
  2. Open the Code Editor window of the SAS Code node.
  3. Enter the SAS code above in the Training Code section.
  4. Save the code and then exit from the Code Editor window.
  5. Run the SAS Code node.
  6. Once the SAS Code node runs successfully, the  textfilter<n>_termbydocmatrix data set can be found in the corresponding Enterprise Miner project Workspaces folder.  

Hope this helps!

 

Ann

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1591 views
  • 0 likes
  • 2 in conversation