<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Specify multi word phrases in proc textmine in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/929016#M10801</link>
    <description>&lt;P&gt;The formatting you suggested might be the solution. I put a space after the term, then no other spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I now see the term 'dont know' in my outterms CAS table!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="supp_0-1716210376776.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96630i418D4CC5488C762F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supp_0-1716210376776.png" alt="supp_0-1716210376776.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I will examine the results a bit more but this is progress!&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 14:51:37 GMT</pubDate>
    <dc:creator>supp</dc:creator>
    <dc:date>2024-05-20T14:51:37Z</dc:date>
    <item>
      <title>Specify multi word phrases in proc textmine</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/928968#M10794</link>
      <description>I am attempting to extract topics from a collection of customer comments. &lt;BR /&gt;&lt;BR /&gt;I would like to be able to parse common phrases.&lt;BR /&gt;&lt;BR /&gt;I read the documentation for the multi term parameters within the parse statement. However I am not getting it to work. &lt;BR /&gt;&lt;BR /&gt;How can I pass the phrases"I don't know", "improve training" or "everything is fine"?</description>
      <pubDate>Mon, 20 May 2024 02:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/928968#M10794</guid>
      <dc:creator>supp</dc:creator>
      <dc:date>2024-05-20T02:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Specify multi word phrases in proc textmine</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/929004#M10798</link>
      <description>&lt;P&gt;It should work.&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;Are you using SAS 9.4 or SAS Viya?&lt;/LI&gt;
&lt;LI&gt;Do you get ERROR or WARNING messages in the LOG?&lt;/LI&gt;
&lt;LI&gt;Can you provide us with your code?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Here's an example of how that option should be used:&lt;/P&gt;
&lt;P&gt;SAS® Visual Data Mining and Machine Learning Procedures&lt;BR /&gt;The TEXTMINE Procedure&lt;BR /&gt;Example 10.7 &lt;STRONG&gt;Adding a Multiterm List&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/vdmmlcdc/8.1/casml/viyaml_textmine_examples07.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/vdmmlcdc/8.1/casml/viyaml_textmine_examples07.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 12:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/929004#M10798</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-05-20T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Specify multi word phrases in proc textmine</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/929009#M10799</link>
      <description>&lt;P&gt;Thanks for the reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS Viya 3.5. I do not get any error or messages. My results are unchanged when I use multiterm.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example,&amp;nbsp; I put the term "dont know" in a CAS table "mycas._multiterm" as follows. Note that this is a common bi-gram in my data found by using pointwise mutual information.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="supp_0-1716208155579.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96628iE05DD9802FE6C471/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supp_0-1716208155579.png" alt="supp_0-1716208155579.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code for topic discovery:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc textmine data= mycas.data_file;
	doc_id id;
	var text;
	parse
		termwgt= 	none
		cellwgt= 	none
		reducef= 	30
		entities= 	std
		multiterm= 	mycas._multiterm
		outparent= 	mycas.outparent
		outterms= 	mycas.outterms
		outpos=		mycas.outpos
		outchild=	mycas.outchild;
	svd	
		k=			100
		outdocpro=	mycas.outdocpro keepvariables= (id)
		outtopics=	mycas.outtopics
		svdu=  		mycas.outsvdu;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;My primary indication that it is not working is that the term 'dont know' is not in mycas.outterms table. My secondary indication is that I can't get my topic assignments to change when I specify multi term phrases.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	select * from mycas.outterms where term = 'dont know';
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="supp_1-1716208594806.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96629i1984CC216EB0E254/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supp_1-1716208594806.png" alt="supp_1-1716208594806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 12:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/929009#M10799</guid>
      <dc:creator>supp</dc:creator>
      <dc:date>2024-05-20T12:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Specify multi word phrases in proc textmine</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/929011#M10800</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18331"&gt;@supp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="supp_0-1716208155579.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96628iE05DD9802FE6C471/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supp_0-1716208155579.png" alt="supp_0-1716208155579.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hmmmm.&lt;BR /&gt;Can you try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dont know :3:Prep&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;... instead of the way you entered it above?&lt;BR /&gt;&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 12:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/929011#M10800</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-05-20T12:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Specify multi word phrases in proc textmine</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/929016#M10801</link>
      <description>&lt;P&gt;The formatting you suggested might be the solution. I put a space after the term, then no other spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I now see the term 'dont know' in my outterms CAS table!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="supp_0-1716210376776.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96630i418D4CC5488C762F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supp_0-1716210376776.png" alt="supp_0-1716210376776.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I will examine the results a bit more but this is progress!&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 14:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Specify-multi-word-phrases-in-proc-textmine/m-p/929016#M10801</guid>
      <dc:creator>supp</dc:creator>
      <dc:date>2024-05-20T14:51:37Z</dc:date>
    </item>
  </channel>
</rss>

