Re: Understanding Python Code

2014-06-19 Thread subhabangalore
On Thursday, June 19, 2014 7:39:42 PM UTC+5:30, Ian wrote: > On Thu, Jun 19, 2014 at 3:48 AM, wrote: > > > I am trying to see this line, > > > prev_f_sum = sum(f_prev[k]*a[k][st] for k in states) > > > > > > a[k][st], and f_prev[k] I could take out and understood. > > > Now as it is doing sum(

Re: Understanding Python Code

2014-06-19 Thread subhabangalore
On Thursday, June 19, 2014 7:57:38 PM UTC+5:30, wrote: > On Thursday, June 19, 2014 7:39:42 PM UTC+5:30, Ian wrote: > > > On Thu, Jun 19, 2014 at 3:48 AM, wrote: > > > > > > > I am trying to see this line, > > > > > > > prev_f_sum = sum(f_prev[k]*a[k][st] for k in states) > > > > > > > >

Understanding Python Code[Forward_Backward_Wikipedia]

2014-06-21 Thread subhabangalore
On Friday, June 20, 2014 12:37:01 AM UTC+5:30, Ian wrote: > On Thu, Jun 19, 2014 at 12:44 PM, wrote: > > > Dear Group, > > > Generally most of the issues are tackled here, but as I am trying to cross > > check my understanding I found another question, > > > > > > f_curr[st] = e[st][x_i] * p

Writing Multiple files at a times

2014-06-29 Thread subhabangalore
Dear Group, I am trying to crawl multiple URLs. As they are coming I want to write them as string, as they are coming, preferably in a queue. If any one of the esteemed members of the group may kindly help. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Writing Multiple files at a times

2014-06-29 Thread subhabangalore
On Sunday, June 29, 2014 7:31:37 PM UTC+5:30, Roy Smith wrote: > In article , > > Dave Angel wrote: > > > > > subhabangal...@gmail.com Wrote in message: > > > > Dear Group, > > > > > > > > I am trying to crawl multiple URLs. As they are coming I want to write > > > them > > > > as stri

Re: Writing Multiple files at a times

2014-06-30 Thread subhabangalore
On Sunday, June 29, 2014 4:19:27 PM UTC+5:30, subhaba...@gmail.com wrote: > Dear Group, > > > > I am trying to crawl multiple URLs. As they are coming I want to write them > as string, as they are coming, preferably in a queue. > > > > If any one of the esteemed members of the group may kin

Writing files at run time

2014-06-30 Thread subhabangalore
Dear Group, In my previous post["https://groups.google.com/forum/#!topic/comp.lang.python/ZYjsskV5MgE";] I was trying to discuss some issue on file writing. I got an associated issue. I am trying to crawl a link, through urllib and trying to store its results in different files. As discusse

Writing Python File at Specific Interval

2014-07-09 Thread subhabangalore
Dear Group, I am trying to write a file, which would create a new file name as the code runs. The code (a basic crawler) would run every morning or evening, on a predefined time. [This part is fine]. In the next part, I am trying to store the daily results to a new file. As I researched I

Re: Writing Python File at Specific Interval

2014-07-20 Thread subhabangalore
On Thursday, July 10, 2014 5:21:01 AM UTC+5:30, Denis McMahon wrote: > On Wed, 09 Jul 2014 07:36:49 -0700, subhabangalore wrote: > > > > > The code (a basic crawler) would run every morning or evening, on a > > > predefined time. [This part is fine]. > >

Forward Backward Algorithm in Python

2013-02-07 Thread subhabangalore
Dear Group, If any one can kindly help me with a simple Forward Backward algorithm implementation. I tried to search in web but did not help much. Thanking You in Advance, Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Re: Forward Backward Algorithm in Python

2013-02-07 Thread subhabangalore
On Friday, February 8, 2013 2:08:35 AM UTC+5:30, Dave Angel wrote: > On 02/07/2013 03:13 PM, subhabangal...@gmail.com wrote: > > > Dear Group, > > > If any one can kindly help me with a simple Forward Backward algorithm > > implementation. I tried to search in web but did not help much. > > > >

Multiple Plotting in Matplotlib

2013-02-18 Thread subhabangalore
Dear Group, I am trying to view multiple plotting files in matplotlib. My numbers range from 5 to few hundred. I was trying to use plt.subplot(), and plt.figure(n). But they did not work. plt.subplot() did not work at all. plt.figure(n) works till n=4. After that I am trying to get error messages

Re: Multiple Plotting in Matplotlib

2013-02-18 Thread subhabangalore
On Monday, February 18, 2013 9:18:34 PM UTC+5:30, Nelle Varoquaux wrote: > > Dear Group, > > > > > > I am trying to view multiple plotting files in matplotlib. My numbers range > > from 5 to few hundred. I was trying to use plt.subplot(), and plt.figure(n). > > > But they did not work. > > > p

Python and Hidden Markov Model

2013-03-07 Thread subhabangalore
Dear Group, I was trying to learn Hidden Markov Model. In Python there are various packages, but I was willing to do some basic calculation starting from the scratch so that I can learn the model very aptly. Do you know of any thing such? Thanking you in Advance, Regards, Subhabrata. -- http:

Re: Python and Hidden Markov Model

2013-03-07 Thread subhabangalore
On Friday, March 8, 2013 2:18:06 AM UTC+5:30, subhaba...@gmail.com wrote: > Dear Group, > > > > I was trying to learn Hidden Markov Model. In Python there are various > packages, but I was willing to do some basic calculation starting from the > scratch so that I can learn the model very aptly

Simple Plot in Python

2013-03-16 Thread subhabangalore
Dear Group, I have two sets of values in probability, like, x=[0.1,0.2,0.3,0.4] and y=[0.2,0.4,0.6,0.8] And I am trying to draw a simple graph with Python. I was trying to draw in Matplotlib but did not find much help. If any one in the room can kindly suggest. Thanking You in Advance, Regard

Re: Simple Plot in Python

2013-03-16 Thread subhabangalore
On Saturday, March 16, 2013 5:12:41 PM UTC+5:30, subhaba...@gmail.com wrote: > Dear Group, > > > > I have two sets of values in probability, like, > > > > x=[0.1,0.2,0.3,0.4] > > and > > y=[0.2,0.4,0.6,0.8] > > > > And I am trying to draw a simple graph with Python. > > > > I was tryi

Error in Python NLTK

2013-04-06 Thread subhabangalore
Dear Group, I was using a package named NLTK in Python. I was trying to write a code given in section 3.8 of http://docs.huihoo.com/nltk/0.9.5/guides/tag.html. Here, in the >>> test = ['up', 'down', 'up'] if I put more than 3 values and trying to write the reciprocal codes, like,

Re: Error in Python NLTK

2013-04-06 Thread subhabangalore
On Sunday, April 7, 2013 2:14:41 AM UTC+5:30, Dave Angel wrote: > On 04/06/2013 03:56 PM, subhabangal...@gmail.com wrote: > > > Dear Group, > > > > > > I was using a package named NLTK in Python. > > > > > > I was trying to write a code given in section 3.8 of > > > > > > http://docs.huihoo.

Re: Error in Python NLTK

2013-04-07 Thread subhabangalore
On Sunday, April 7, 2013 2:14:41 AM UTC+5:30, Dave Angel wrote: > On 04/06/2013 03:56 PM, subhabangal...@gmail.com wrote: > > > Dear Group, > > > > > > I was using a package named NLTK in Python. > > > > > > I was trying to write a code given in section 3.8 of > > > > > > http://docs.huihoo.

Splitting of string at an interval

2013-04-07 Thread subhabangalore
Dear Group, I was looking to split a string in a particular interval, like, If I have a string, string="The Sun rises in the east of our earth" I like to see it as, words=["The Sun","rises in","in the","east of","our earth"] If any one of the learned members can kindly suggest. Regards, Sub

Re: Error in Python NLTK

2013-04-07 Thread subhabangalore
On Monday, April 8, 2013 1:50:38 AM UTC+5:30, subhaba...@gmail.com wrote: > On Sunday, April 7, 2013 2:14:41 AM UTC+5:30, Dave Angel wrote: > > > On 04/06/2013 03:56 PM, subhabangal...@gmail.com wrote: > > > > > > > Dear Group, > > > > > > > > > > > > > > I was using a package named NLTK

Time Calculation to Tag a Sentence/File

2017-06-07 Thread subhabangalore
I am trying to calculate the time required to tag one sentence/file by one trained NLTK HMM Tagger. To do this I am writing the following code, please suggest if I need to revise anything here. import nltk from nltk.corpus.reader import TaggedCorpusReader import time #HMM reader = TaggedCorpusR

Re: Time Calculation to Tag a Sentence/File (Posting On Python-List Prohibited)

2017-06-09 Thread subhabangalore
On Friday, June 9, 2017 at 1:18:35 PM UTC+5:30, Lawrence D’Oliveiro wrote: > On Thursday, June 8, 2017 at 9:57:40 AM UTC+12, subhaba...@gmail.com wrote: > > ... (with Python2.7 on MS-Windows 7) ... > > Why? Are you asking why not Python3? My Java based colleagues say it clashes with Java, so we

Re: Time Calculation to Tag a Sentence/File (Posting On Python-List Prohibited)

2017-06-09 Thread subhabangalore
On Saturday, June 10, 2017 at 1:53:07 AM UTC+5:30, Paul Barry wrote: > This is a strange statement. Python 3 doesn't even clash with Python 2, so > I can't think of how it might cause problems with Java. I've run 2 and 3 > on Windows 7, Vista, and 10 without any issues. > > Paul. > > On 9 June

<    1   2