<?xml version="1.0"?>
<rss xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:admin="http://webns.net/mvcb/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:php="http://php.net/xsl" version="2.0"><channel><title>Jaggu's world 
                
                Comments</title><link>http://jaganadhg.freeflux.net/blog/</link><description>Comments </description><generator>Flux CMS - http://www.flux-cms.org/</generator><ttl>60</ttl><item><title>skin cancer reconstructive surgery: Redmine installation is easy now !!!</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/11/26/redmine-installation-is-easy-now.html#c315</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/11/26/redmine-installation-is-easy-now.html#c315</comments><author>skin cancer reconstructive surgery &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">Hi first time here and stumbling upon sites for getting some interesting info, this site seems informative. I would like to visit here very often.</content:encoded><dc:date>2009-12-22T09:21:52Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/redmine-installation-is-easy-now.html#c315</guid></item><item><title>shilpi: Historic paper on the origin and development of Indian Language Technologies</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/11/16/historic-paper-on-the-origin-and-development-of-indian-language-technologies.html#c313</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/11/16/historic-paper-on-the-origin-and-development-of-indian-language-technologies.html#c313</comments><author>shilpi &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">hi jagannadh , this is shilpi ... i have been workin under sinha sir. n we met when u came there for prsg meet wid ur cdac team. are u the same jagannadh from cdac trivendrum?</content:encoded><dc:date>2009-12-16T11:37:57Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/historic-paper-on-the-origin-and-development-of-indian-language-technologies.html#c313</guid></item><item><title>jaganadhg: Finding bigrams with NLTK.</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/07/15/finding-bigrams-with-nltk.html#c268</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/07/15/finding-bigrams-with-nltk.html#c268</comments><author>jaganadhg &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">Hello Muhammad&lt;br /&gt;
change pd = ProbDistI() to pd = ProbDistI&lt;br /&gt;
and ProbDistI has no function called inc . That is the problem caused in your program. See the help for ProbDistI .</content:encoded><dc:date>2009-11-25T05:37:41Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/finding-bigrams-with-nltk.html#c268</guid></item><item><title>Mohamed Lichouri: Finding bigrams with NLTK.</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/07/15/finding-bigrams-with-nltk.html#c267</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/07/15/finding-bigrams-with-nltk.html#c267</comments><author>Mohamed Lichouri &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">Hello Jaganadh G;&lt;br /&gt;
i need your helo please, i have write this code:&lt;br /&gt;
# -*- coding: cp1252 -*-&lt;br /&gt;
&lt;br /&gt;
# import FreqDist class&lt;br /&gt;
from nltk.probability import FreqDist&lt;br /&gt;
&lt;br /&gt;
a=(open('ml_bigram.txt').read())&lt;br /&gt;
&lt;br /&gt;
# create frequency distribution object&lt;br /&gt;
fd = FreqDist()&lt;br /&gt;
&lt;br /&gt;
# for each token in the relevant text, increment its counter&lt;br /&gt;
for word in a.split():&lt;br /&gt;
fd.inc(word)&lt;br /&gt;
&lt;br /&gt;
# Get a list of words sorted by frequency&lt;br /&gt;
for word in fd.keys():&lt;br /&gt;
print word, fd[word]&lt;br /&gt;
&lt;br /&gt;
# save the result&lt;br /&gt;
&lt;br /&gt;
result = open("freq_word.txt", "w")&lt;br /&gt;
result.write(str(fd))&lt;br /&gt;
result.close()&lt;br /&gt;
&lt;br /&gt;
#**************************&lt;br /&gt;
this code work great with frequency distribution but when i use the same code with probability distribution i don't get anything&lt;br /&gt;
&lt;br /&gt;
# -*- coding: cp1252 -*-&lt;br /&gt;
&lt;br /&gt;
# import ProbDist class&lt;br /&gt;
from nltk.probability import ProbDistI&lt;br /&gt;
&lt;br /&gt;
a=(open('ml_bigram.txt').read())&lt;br /&gt;
&lt;br /&gt;
# create probability distribution object&lt;br /&gt;
pd = ProbDistI()&lt;br /&gt;
&lt;br /&gt;
# for each token in the relevant text, increment its counter&lt;br /&gt;
for word in a.split():&lt;br /&gt;
pd.inc(word)&lt;br /&gt;
&lt;br /&gt;
# Get a list of words sorted by probability&lt;br /&gt;
for word in pd.keys():&lt;br /&gt;
print word, pd[word]&lt;br /&gt;
&lt;br /&gt;
# save the result&lt;br /&gt;
&lt;br /&gt;
result = open("prob_word.txt", "w")&lt;br /&gt;
result.write(str(pd))&lt;br /&gt;
result.close()&lt;br /&gt;
&lt;br /&gt;
best regards,&lt;br /&gt;
Mohamed Lichouri</content:encoded><dc:date>2009-11-24T15:20:57Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/finding-bigrams-with-nltk.html#c267</guid></item><item><title>Jaganadh G: Finding bigrams with NLTK.</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/07/15/finding-bigrams-with-nltk.html#c266</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/07/15/finding-bigrams-with-nltk.html#c266</comments><author>Jaganadh G &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">Happy to know that the code helped you.&lt;br /&gt;
Infact removed the 'codecs' from the code ? I included it for reading Unicode text.</content:encoded><dc:date>2009-11-24T08:49:13Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/finding-bigrams-with-nltk.html#c266</guid></item><item><title>Jaganadh G: Historic paper on the origin and development of Indian Language Technologies</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/11/16/historic-paper-on-the-origin-and-development-of-indian-language-technologies.html#c265</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/11/16/historic-paper-on-the-origin-and-development-of-indian-language-technologies.html#c265</comments><author>Jaganadh G &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">If you have access to IEEE site you can download it from there.&lt;br /&gt;
Please try .</content:encoded><dc:date>2009-11-24T08:46:17Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/historic-paper-on-the-origin-and-development-of-indian-language-technologies.html#c265</guid></item><item><title>Mohamed Lichouri: Finding bigrams with NLTK.</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/07/15/finding-bigrams-with-nltk.html#c264</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/07/15/finding-bigrams-with-nltk.html#c264</comments><author>Mohamed Lichouri &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">Thank you for posting this code;&lt;br /&gt;
i had really a big problem with bigrams function.&lt;br /&gt;
i have change it a little and it work very well.&lt;br /&gt;
Best regards;&lt;br /&gt;
#!/usr/bin/env python&lt;br /&gt;
import sys&lt;br /&gt;
from nltk import bigrams&lt;br /&gt;
&lt;br /&gt;
def gen_ML_Bigram(text):&lt;br /&gt;
texfbig = open(text).read()&lt;br /&gt;
tokens = texfbig.split()&lt;br /&gt;
ml_bigram = bigrams(tokens)&lt;br /&gt;
out = open("ml_bigram.txt",'w')&lt;br /&gt;
for ml in ml_bigram:&lt;br /&gt;
out.write(" ".join(ml))&lt;br /&gt;
out.write("n")&lt;br /&gt;
&lt;br /&gt;
inp='wordtokens.txt'&lt;br /&gt;
gen_ML_Bigram(inp)</content:encoded><dc:date>2009-11-21T23:51:57Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/finding-bigrams-with-nltk.html#c264</guid></item><item><title>dilawar: Historic paper on the origin and development of Indian Language Technologies</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/11/16/historic-paper-on-the-origin-and-development-of-indian-language-technologies.html#c263</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/11/16/historic-paper-on-the-origin-and-development-of-indian-language-technologies.html#c263</comments><author>dilawar &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">Yaar paper bhej dena meri email id par...</content:encoded><dc:date>2009-11-21T07:25:35Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/historic-paper-on-the-origin-and-development-of-indian-language-technologies.html#c263</guid></item><item><title>&#xD1A;&#xD46;&#xD32;&#xD15;&#xD4D;&#xD15;&#xD3E;&#xD23;&#xD4D;&#xD1F;&#xD4D; &#xD2A;&#xD4B;&#xD1F;&#xD3E;: New book in 'Head First' series with python</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/11/18/new-book-in-head-first-series-with-python.html#c262</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/11/18/new-book-in-head-first-series-with-python.html#c262</comments><author>&#xD1A;&#xD46;&#xD32;&#xD15;&#xD4D;&#xD15;&#xD3E;&#xD23;&#xD4D;&#xD1F;&#xD4D; &#xD2A;&#xD4B;&#xD1F;&#xD3E; &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">how is it?</content:encoded><dc:date>2009-11-18T16:04:31Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/new-book-in-head-first-series-with-python.html#c262</guid></item><item><title>Syam: Some thoughts on Tweeting</title><link>http://jaganadhg.freeflux.net/blog/archive/2009/11/14/some-thoughts-on-tweeting.html#c260</link><comments>http://jaganadhg.freeflux.net/blog/archive/2009/11/14/some-thoughts-on-tweeting.html#c260</comments><author>Syam &lt;undisclosed@example.org&gt;
                        </author><content:encoded xmlns="http://www.w3.org/1999/xhtml">"But I found that twitter has an impotent role in my professional area"&lt;br /&gt;
Impotent or Important?&lt;br /&gt;
And 'teeting' vs 'tweeting'</content:encoded><dc:date>2009-11-14T14:08:43Z</dc:date><guid isPermaLink="false">http://jaganadhg.freeflux.net/blog/some-thoughts-on-tweeting.html#c260</guid></item></channel></rss>
