Question: Implement Porters stemming algorithm in the programming language of your choice. You will need to find a full description of the algorithm. You can find

Implement Porter’s stemming algorithm in the programming language of your choice. You will need to find a full description of the algorithm. You can find this in Porter (1980), Spärck Jones (1997), or online. Apply the algorithm to a dictionary of words, such as the one that comes with most UNIX implementations. Then allow a user to enter a word, and have the system look this word up and say “yes” if it is present in its stemmed form in the dictionary or “no” if it is not. For example, if the dictionary contains swim, fish, and cheese, then it should say “yes” to swimming, fishing, and cheeses but no to chocolate and swam.

Step by Step Solution

3.42 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import re class PorterStemmer def initself selfstep1suffixes sses ss ies i ss ss s selfstep2suffixes ational ate tional tion enci ence anci ance izer ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction To Artificial Intelligence Questions!