The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Parts of Speech (POS) Filtering
Hi.
I am have tokenised some text and am now trying to remove POS, using the Filter by POS Operator. I have used the following expression: N.*|VB.*|RB.*|JJ.*|MD.*|PP.* in an attempt to keep nouns, adjectives, verbs and adverbs. The problem is that as an example, nouns and verbs were filtered out e.g. the word "need" is no longer present in my text.
What am I doing wrong and do I have the right expression for the POS tokens I want to keep (nouns, adjectives, verbs and adverbs)?
Thanks,
Hyram
I am have tokenised some text and am now trying to remove POS, using the Filter by POS Operator. I have used the following expression: N.*|VB.*|RB.*|JJ.*|MD.*|PP.* in an attempt to keep nouns, adjectives, verbs and adverbs. The problem is that as an example, nouns and verbs were filtered out e.g. the word "need" is no longer present in my text.
What am I doing wrong and do I have the right expression for the POS tokens I want to keep (nouns, adjectives, verbs and adverbs)?
Thanks,
Hyram
Tagged:
0
Best Answers
-
Telcontar120 RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 UnicornAs you seem to know, you need to use the PENN POS tags, which are available here:
https://www.ling.upenn.edu/courses/Fall_2003/ling001/penn_treebank_pos.html
Your expression doesn't look like is has anything obviously wrong with it to me.
@kayman can you take a look and see if you can find anything wrong?
Also you might try doing one selection at a time to see if there is a problem with the compound expression?
Or try filtering out specific tags rather than keeping only certain tags?
1 -
kayman Member Posts: 662 UnicornHi @Hyram , @Telcontar120
Seems ok at first glance indeed.
As recommended by Brian try to do the same without filters (or filter one by one) so you get an understanding which tag is given to 'need' by RM. POS tags are sensitive to word location etc, so depending on the string the same word can get different tags.
Need can be both verb or noun for instance, but since you are capturing both it shouldn't be a problem to start with.
You didn't accidentally select the invert option?1
Answers