<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" 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/"><channel><title>Using the MicrosoftNgram Python Module</title><link>http://blogs.msdn.com/b/webngram/archive/2010/11/08/using-the-microsoftngram-python-module.aspx</link><description>A quick tutorial on the MicrosoftNgram Python library.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Using the MicrosoftNgram Python Module</title><link>http://blogs.msdn.com/b/webngram/archive/2010/11/08/using-the-microsoftngram-python-module.aspx#10097411</link><pubDate>Sat, 27 Nov 2010 21:09:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10097411</guid><dc:creator>Viswanath</dc:creator><description>&lt;p&gt;We have one problem: We need all 5-grams which have a particular word in them (Say for example: All 5-grams which have sachin in it). Currently with generate service we can only get &amp;nbsp;all &amp;quot;one succeeding&amp;quot; word after a given context(phrase). Is there any way so that we can get all 5-grams which have a particular word in them.&lt;/p&gt;
&lt;p&gt;We figure out this way:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. First call the generative service: through which we will get all one succeeding words.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Now we have a context say &amp;quot;sachin tendulkar&amp;quot; and then we make a one more Generative Service call through which we will get all &amp;quot;one succeeding&amp;quot; words after context. And we will multiple both &amp;nbsp; &amp;nbsp; probabilities ( Joint Probability ).&lt;/p&gt;
&lt;p&gt;Now the problem is: Through this procedure we can only get succeeding words, we need left context of a given particular word. If you have any solution, please let us know. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10097411" width="1" height="1"&gt;</description></item></channel></rss>