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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1546 views
  • 0 likes
  • 2 in conversation