<?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: Text Mining Question RegEx in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Text-Mining-Question-RegEx/m-p/580500#M7962</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/128919" target="_self"&gt;elainathewonder&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Greetings of the day.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;I have done something for you, just have a check and let me know if you mean this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

data test;
 patternID=prxparse("/L\w+E/o");
 input address $80. ;
 position = prxmatch(patternID, address);
 
  if position ^= 0 then address= tranwrd(address,substr(address,POSITION,5),'Love');

 datalines;
Zack Johnson, 153 LirsE Str, Chapel Hill, NC27514
Dan Zack, 67891 64th st, Brea, CA
Sally Johns, 4 Moritz LtreE, Duarte, CA 91010
;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class=""&gt;In the above example LirsE, LtreE few words are there which got replaced with a common word 'Love'. So if think like there is some kind of similarity in the misspelling texts you can identify that and parse the same as per example and you are done.&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;&lt;SPAN class=""&gt;Please check and let me know if there is any disconnect.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 09:38:58 GMT</pubDate>
    <dc:creator>rajdeep</dc:creator>
    <dc:date>2019-08-12T09:38:58Z</dc:date>
    <item>
      <title>Text Mining Question RegEx</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Text-Mining-Question-RegEx/m-p/579999#M7961</link>
      <description>&lt;P&gt;Is there a way to group together the misspellings of words prior to creating a summary table so when I am searching the data set it uses the one word for all the misspellings (I have all the misspellings listed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Replacing like for love, likes, liked, liker&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 21:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Text-Mining-Question-RegEx/m-p/579999#M7961</guid>
      <dc:creator>elainathewonder</dc:creator>
      <dc:date>2019-08-08T21:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Text Mining Question RegEx</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Text-Mining-Question-RegEx/m-p/580500#M7962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/128919" target="_self"&gt;elainathewonder&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Greetings of the day.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;I have done something for you, just have a check and let me know if you mean this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

data test;
 patternID=prxparse("/L\w+E/o");
 input address $80. ;
 position = prxmatch(patternID, address);
 
  if position ^= 0 then address= tranwrd(address,substr(address,POSITION,5),'Love');

 datalines;
Zack Johnson, 153 LirsE Str, Chapel Hill, NC27514
Dan Zack, 67891 64th st, Brea, CA
Sally Johns, 4 Moritz LtreE, Duarte, CA 91010
;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class=""&gt;In the above example LirsE, LtreE few words are there which got replaced with a common word 'Love'. So if think like there is some kind of similarity in the misspelling texts you can identify that and parse the same as per example and you are done.&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;&lt;SPAN class=""&gt;Please check and let me know if there is any disconnect.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 09:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Text-Mining-Question-RegEx/m-p/580500#M7962</guid>
      <dc:creator>rajdeep</dc:creator>
      <dc:date>2019-08-12T09:38:58Z</dc:date>
    </item>
  </channel>
</rss>

