<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=NLTK%3A_Stemming</id>
	<title>NLTK: Stemming - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=NLTK%3A_Stemming"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=NLTK:_Stemming&amp;action=history"/>
	<updated>2026-04-20T13:46:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=NLTK:_Stemming&amp;diff=46936&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;A word stem is part of a word. It is sort of a normalization idea, but linguistic. For example, the stem of the word waiting is wait. word-stem word stem  Given words, NLTK ca...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=NLTK:_Stemming&amp;diff=46936&amp;oldid=prev"/>
		<updated>2017-02-07T23:04:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;A word stem is part of a word. It is sort of a normalization idea, but linguistic. For example, the stem of the word waiting is wait. word-stem word stem  Given words, NLTK ca...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A word stem is part of a word. It is sort of a normalization idea, but linguistic.&lt;br /&gt;
For example, the stem of the word waiting is wait.&lt;br /&gt;
word-stem&lt;br /&gt;
word stem&lt;br /&gt;
&lt;br /&gt;
Given words, NLTK can find the stems.&lt;br /&gt;
&lt;br /&gt;
NLTK – stemming&lt;br /&gt;
Start by defining some words:&lt;br /&gt;
&lt;br /&gt;
 words = [&amp;quot;game&amp;quot;,&amp;quot;gaming&amp;quot;,&amp;quot;gamed&amp;quot;,&amp;quot;games&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
We import the module:&lt;br /&gt;
&lt;br /&gt;
 from nltk.stem import PorterStemmer&lt;br /&gt;
 from nltk.tokenize import sent_tokenize, word_tokenize&lt;br /&gt;
&lt;br /&gt;
And stem the words in the list using:&lt;br /&gt;
&lt;br /&gt;
 from nltk.stem import PorterStemmer&lt;br /&gt;
 from nltk.tokenize import sent_tokenize, word_tokenize&lt;br /&gt;
  &lt;br /&gt;
 words = [&amp;quot;game&amp;quot;,&amp;quot;gaming&amp;quot;,&amp;quot;gamed&amp;quot;,&amp;quot;games&amp;quot;]&lt;br /&gt;
 ps = PorterStemmer()&lt;br /&gt;
  &lt;br /&gt;
 for word in words:&lt;br /&gt;
     print(ps.stem(word))&lt;br /&gt;
&lt;br /&gt;
nltk-stemming&lt;br /&gt;
nltk word stem example&lt;br /&gt;
&lt;br /&gt;
You can do word stemming for sentences too:&lt;br /&gt;
&lt;br /&gt;
 from nltk.stem import PorterStemmer&lt;br /&gt;
 from nltk.tokenize import sent_tokenize, word_tokenize&lt;br /&gt;
  &lt;br /&gt;
 ps = PorterStemmer()&lt;br /&gt;
   &lt;br /&gt;
 sentence = &amp;quot;gaming, the gamers play games&amp;quot;&lt;br /&gt;
 words = word_tokenize(sentence)&lt;br /&gt;
  &lt;br /&gt;
 for word in words:&lt;br /&gt;
     print(word + &amp;quot;:&amp;quot; + ps.stem(word))&lt;br /&gt;
&lt;br /&gt;
python-nltk&lt;br /&gt;
Stemming with NLTK&lt;br /&gt;
&lt;br /&gt;
There are more stemming algorithms, but Porter (PorterStemer) is the most popular.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://pythonspot.com/nltk-stemming/&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>