<?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: How to get nouns from a given string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839137#M331790</link>
    <description>&lt;P&gt;Quote from you:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I extracted the nouns from an online website&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Now, what is it? Manually entered, or retrieved from a website?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please describe&amp;nbsp;&lt;STRONG&gt;in detail(!!!)&lt;/STRONG&gt; your whole process.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 08:59:04 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-10-18T08:59:04Z</dc:date>
    <item>
      <title>How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/838912#M331708</link>
      <description>&lt;P&gt;I have some string data and I want to extract the nouns from those strings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data text;
infile datalines delimiter=",";
length Id $5 string $100;
input Id String $;
datalines;
10, Ahmad is a student in fifth grade
11, His mother is a nurse in a hospital
12, His aunt is a kindergarten teacher
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;Now I want to extract the nouns from this data.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want a table with the below data as&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ID&amp;nbsp; Noun&lt;/DIV&gt;&lt;DIV&gt;10&amp;nbsp; student grade&lt;/DIV&gt;&lt;DIV&gt;11 mother nurse&lt;/DIV&gt;&lt;DIV&gt;12&amp;nbsp; aunt kindergarten teacher&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there any NLP library or function in SAS that can do this?&lt;/DIV&gt;&lt;DIV&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Oct 2022 08:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/838912#M331708</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2022-10-17T08:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/838923#M331710</link>
      <description>&lt;P&gt;I don't know any function that can do this, would be interesting to maintain such a function, which, of course, needs to support multiple languages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe such a function exists in a special sas-component.&lt;/P&gt;
&lt;P&gt;Maybe you can find a list of nouns in the www.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have such a list, the program could have the following steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;read the list&lt;/LI&gt;
&lt;LI&gt;create an informat (see code below)&lt;/LI&gt;
&lt;LI&gt;check each word&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data nouns_fmt;
   set list(rename=(noun = start)) end=jobDone;
   retain FmtName 'IsNoun' Type 'i' Hlo 'U' Label 1;
   
   Start = upcase(start);
   output;
   
   if jobDone then do;
      HLO = 'O';
      Label = 0;
      output;
   end;
run;

proc format cntlin= nouns_fmt;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Oct 2022 09:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/838923#M331710</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-10-17T09:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/838990#M331726</link>
      <description>&lt;P&gt;Ahmed is a Proper Noun. Is there are RULE that proper nouns are not to be included?&lt;/P&gt;
&lt;P&gt;What is the RULE that Hospital is not considered as a noun in the second observation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What would the result be for a sentence like:&lt;/P&gt;
&lt;PRE&gt;I grade papers.&lt;/PRE&gt;
&lt;P&gt;Natural language processing is a pain. English may be the worst language to attempt this with because so many "nouns" are also adjectives, adverbs or verbs.&lt;/P&gt;
&lt;P&gt;There are also problems related with separating proper nouns from nouns with the fads for "yewneek" spellings of children's names where more names are place names, drinks, occupations and other non-traditional words. Remembering of course than many current proper names are nouns or job descriptions in older languages or versions of English.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 14:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/838990#M331726</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-17T14:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839125#M331782</link>
      <description>&lt;P&gt;There is not any rule regarding nouns and proper nouns. I just need to get noun information for analytics. it could be both nouns and proper nouns. I extracted the nouns from an online website.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 06:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839125#M331782</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2022-10-18T06:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839127#M331784</link>
      <description>&lt;P&gt;So you "just" need to look for words you already have in a dataset?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 06:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839127#M331784</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-18T06:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839130#M331786</link>
      <description>&lt;P&gt;I just need to look fr words that user enter in a string and I need to extract the nouns from it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 07:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839130#M331786</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2022-10-18T07:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839132#M331787</link>
      <description>&lt;P&gt;It looks like &lt;A href="https://go.documentation.sas.com/doc/en/ctxtcdc/8.5/ctxtug/n1ctfijeax2qb3n13hfhn6xummbi.htm" target="_self"&gt;SAS Visual Text Analytics&lt;/A&gt; provides functionality in this area.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1666077461290.png" style="width: 853px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76264i852E4B6EE5B48B6C/image-dimensions/853x120?v=v2" width="853" height="120" role="button" title="Patrick_0-1666077461290.png" alt="Patrick_0-1666077461290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 07:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839132#M331787</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-18T07:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839137#M331790</link>
      <description>&lt;P&gt;Quote from you:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I extracted the nouns from an online website&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Now, what is it? Manually entered, or retrieved from a website?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please describe&amp;nbsp;&lt;STRONG&gt;in detail(!!!)&lt;/STRONG&gt; your whole process.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 08:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839137#M331790</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-18T08:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839319#M331870</link>
      <description>&lt;P&gt;I get that manually from a website.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 09:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839319#M331870</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2022-10-19T09:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839320#M331871</link>
      <description>I searched "Get nouns from a string online" and the first website does this for me</description>
      <pubDate>Wed, 19 Oct 2022 09:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/839320#M331871</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2022-10-19T09:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get nouns from a given string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/841851#M332875</link>
      <description>&lt;P&gt;I wrote a python code that returns noun words using nltk lbirary and passed that string to it as parameter. I executed that code using pipe command and saved the output in a sas dataset.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 13:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-nouns-from-a-given-string/m-p/841851#M332875</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2022-11-01T13:13:28Z</dc:date>
    </item>
  </channel>
</rss>

