BookmarkSubscribeRSS Feed
mar00390
Fluorite | Level 6

How do I delete prepositions/conjunctions/auxiliary verbs from a string? My strings have a length of 32,767 

2 REPLIES 2
mkeintz
PROC Star

Example data set please.

 

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
mar00390
Fluorite | Level 6

Using the TEXT variable, I want to delete all of the prepositions/conjunctions/auxiliary verbs. Below is an example of a string in the TEXT variable:

 

The cognitive functions of language and memory are compromised in the initial stages of Alzheimer’s disease (AD). Among the language tasks that are impaired in the initial stages of AD are the understanding of textual reading and lexical production. The difficulties in understanding textual reading in these patients are known to be attributed to cognitive flaws, such as those involving episodic memory, short term memory (working memory) and attention, found early in the disease. Reports from outline that the elderly without dementia remember more items of information than those with dementia. These studies show that the retelling of stories is an accurate procedure to discriminate the disease. On the other hand, lexical difficulties, verified through the naming of pictures, have been said to be due to flaws in the lexical access or to semantic memory flaws. As the studies about linguistics disturbances in patients with AD have focused on these two activities separately, little is known about how these lexical difficulties interfere in the retelling of stories.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 1176 views
  • 0 likes
  • 2 in conversation