On Mar 27, 8:52 pm, Mark Dickinson wrote:
> On Mar 27, 3:00 pm, joy99 wrote:
>
> > (i) Suppose we have 8 which is 2^3 i.e., 3 is the power of 2, which we
> > are writing in Python as,
> > variable1=2
> > variable2=3
> > result=pow(variable1,variable2)
>
On Mar 27, 4:36 pm, Mark Dickinson wrote:
> On Mar 27, 11:07 am, joy99 wrote:
>
> > (b) Suppose we have two distributions p(x1) and p(x2), of the Model M,
> > the E of EM algorithm, without going into much technical details is,
> > P0(x1,x2), P1(x1,x2)
>
> &
On Mar 25, 9:19 pm, "bruno.desthuilli...@gmail.com"
wrote:
> On 25 mar, 16:19, joy99 wrote:
>
>
>
> > Dear Group,
>
> > I got a question which might be possible but I am not getting how to
> > do it.
>
> > If I have a list, named,
> >
Dear Group,
I got a question which might be possible but I am not getting how to
do it.
If I have a list, named,
list1=[1.0,2.3,4.4,5.5]
Now each element in the array holds the string property if I want to
convert them to float, how would I do it?
Extracting the values with for and appendin
On Mar 23, 2:57 pm, Brian Blais wrote:
> On Mar 22, 2011, at 7:18 PM, joy99 wrote:
>
> > My apology to pose this non python question in this forum. I am trying
> > to develop one Naive Bayes Classifier and one HMM with Python. But my
> > question is not related to Pyt
Dear Group,
My apology to pose this non python question in this forum. I am trying
to develop one Naive Bayes Classifier and one HMM with Python. But my
question is not related to Python, rather to these two models, whether
I am choosing right parameters, etc for these models.
Python is a chosen
On Mar 20, 6:18 pm, Noah Hall wrote:
> > class Message:
> > def __init__(self,string1,string2,lenstr1,lenstr2):
> > self.string1="MY"
> > self.string2="NAME"
> > self.lenstr1=lenstr1
> > self.lenstr2=lenstr2
>
> The variables string1 and string2 that you're passing h
On Mar 20, 6:18 pm, Noah Hall wrote:
> > class Message:
> > def __init__(self,string1,string2,lenstr1,lenstr2):
> > self.string1="MY"
> > self.string2="NAME"
> > self.lenstr1=lenstr1
> > self.lenstr2=lenstr2
>
> The variables string1 and string2 that you're passing h
On Mar 20, 11:13 am, joy99 wrote:
> On Mar 20, 9:39 am, Steven D'Aprano
>
>
> +comp.lang.pyt...@pearwood.info> wrote:
> > On Sat, 19 Mar 2011 16:57:58 -0700, joy99 wrote:
> > > Dear Group,
>
> > > I am trying to pose two small questions.
>
&g
On Mar 20, 9:39 am, Steven D'Aprano wrote:
> On Sat, 19 Mar 2011 16:57:58 -0700, joy99 wrote:
> > Dear Group,
>
> > I am trying to pose two small questions.
>
> > 1) I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.
> > 1500 32 bit (Intel
Dear Group,
I am trying to pose two small questions.
1) I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.
1500 32 bit (Intel)] on win32 Type "copyright", "credits" or
"license()" for more information, on WINXP SP2.
As I am writing a code for class like the following:
IDLE 2.6.
en
> Scrapyhttp://scrapy.org/could be useful too.
>
> David Marek
> dav...@atrey.karlin.mff.cuni.czhttp://davidmarek.cz
>
> On Tue, Mar 15, 2011 at 7:10 AM, joy99 wrote:
> > Dear Group,
> > I am trying to construct a web based crawler with Python and for that
> > I a
Dear Group,
I am trying to construct a web based crawler with Python and for that
I am using the URLLIB module, and by doing
import urllib and then trying with urllib.urlopen("url).
Am I going fine?
If some one can kindly highlight if I am doing any mistake.
Best Regards,
Subhabrata Banerjee.
--
Dear Group,
If I have a list of elements, like,
list=[1,2,3,4,5,..]
now, if I want to multiply an increment of subset of the list each
time,
like,
elem1_list=list[0]
elem2_list=list[1]
elem3_list=list[2]
elem4_list=list[3]
multiplysubset1=elem1_list*elem2_list
multiplysubset2=elem1_list*elem2_lis
On Feb 25, 8:03 pm, Daniel Fetchinson
wrote:
> >> >I have developed one big Machine Learning software a Machine
> >> >Translation system in Python.
> >> >Now, I am thinking to make a User Interface of it and upload it in a
> >> >web site.
>
> >> Do you mean you want people to download this from a
On Feb 25, 12:36 pm, Tim Roberts wrote:
> joy99 wrote:
>
> >Dear Group,
> >I have developed one big Machine Learning software a Machine
> >Translation system in Python.
> >Now, I am thinking to make a User Interface of it and upload it in a
> >web site
Dear Group,
I have developed one big Machine Learning software a Machine
Translation system in Python.
Now, I am thinking to make a User Interface of it and upload it in a
web site.
My questions are:
(i) For Designing an interface I am choosing Tkinter. Is it fine?
(ii) How to connect this interfa
Thanks for your reply.
On Feb 13, 6:58 pm, Chris Rebert wrote:
> On Sun, Feb 13, 2011 at 4:56 AM, joy99 wrote:
> > Dear Room,
>
> Just a friendly FYI: that's a strange salutation; comp.lang.python AKA
> python-list isn't a chat room, at least in the normal sense of th
Dear Room,
I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.
1500 32 bit (Intel)] on win32 on Windows XP (SP2).
Trying to create an .exe file of my scripting file I had saved it
as .exe instead of .py file. It seems created. But how to run it? I
tried command prompt, seems unres
Dear Room,
I was trying to build an .exe file for my sample python scripting file
"hello1.py". I felt using cx_freeze as py2exe was giving some problems
for Python2.6, which I am using.
I gave the following commands:
>>> import sys
>>> from cx_Freeze import setup, Executable
>>> base = None
if sys
dows install (server most of the
> time)
> For them, I provide a link to the M$ vcredist and a warning in my
> download page asking them to install it them self.
>
> Take a look at my site for the vcredist link
> :http://www.magikmon.com/mksbackup/download.en.html
>
> Re
Dear Room,
I am using Windows XP (SP2) and a Python Version "Python 2.6.5
(r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
win32".
I was looking to create exe files. Reviewing various posts here, I
felt py2exe may be the best thing I can opt for.
But for Python2.6 I found the f
On Jan 30, 2:49 am, Ben Finney wrote:
> joy99 writes:
> > I am looking for some remote Python Projects, which can be done from
> > home.
>
> > If any one knows of anything, I may be helpful enough.
>
> One of the best ways to begin contributing is to fix bugs and
Dear Room,
I am a Python Programmer from India(New Delhi Region), and I worked
for quite a long time in Bangalore. I have been working in Python for
the last 4 years or so. I have successfully built around 15 projects
in Python. I am looking for some remote Python Projects, which can be
done from
Dear Room,
I am a Python programmer from India. I am looking for some freelance
Python projects, preferably in Natural Language Processing and Machine
Learning. If any one knows of it, please let me know.
Best Regards,
Subhabrata Banerjee.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 1, 6:22 pm, Daniel Fetchinson
wrote:
> > Dear Group,
>
> > Hope all of you are fine and spending nice new year evenings.
>
> > I get a bug in Python over the last 4 years or so, since I am using
> > it. The language is superb, no doubt about it. It helped me finish
> > many a projects, with
Dear Group,
Hope all of you are fine and spending nice new year evenings.
I get a bug in Python over the last 4 years or so, since I am using
it. The language is superb, no doubt about it. It helped me finish
many a projects, with extraordinary accuracy. But long since, I was
getting an interesti
On Nov 13, 7:39 pm, joy99 wrote:
> Dear Group,
>
> Hope every one is fine.
>
> I am trying to put some questions.
>
> I am developing some tool boxes for support vector machine (SVM) and
> hidden markov model (HMM).
> For HMM I was following the tutorial by Leeds Un
Dear Group,
Hope every one is fine.
I am trying to put some questions.
I am developing some tool boxes for support vector machine (SVM) and
hidden markov model (HMM).
For HMM I was following the tutorial by Leeds University Computer
Science Department, available online in HTML format, and for SV
Dear Group,
Hope everyone is fine.
I was trying some examples of Python class.
I took the following example from Ubuntu forum[http://ubuntuforums.org/
showthread.php?t=578930]
class Person(object):
def _init_(self,name,age):
self.name=name
self.age=age
as
On May 25, 12:18 pm, Peter Otten <__pete...@web.de> wrote:
> Kushal Kumaran wrote:
> > On Tue, May 25, 2010 at 3:38 AM,joy99 wrote:
> >>
>
> >> Dear Vlastimir,
>
> >> As pointed out by Alister, I can print the values of function1 and
> >
On May 25, 1:56 am, Vlastimil Brom wrote:
> 2010/5/24 joy99 :
>
>
>
>
>
>
>
> > Dear Group,
>
> > I have a small question on function.
>
> > If I write two functions like the following:
>
> > IDLE 2.6.5
> >>>> def function1
On May 25, 1:56 am, Vlastimil Brom wrote:
> 2010/5/24 joy99 :
>
>
>
>
>
>
>
> > Dear Group,
>
> > I have a small question on function.
>
> > If I write two functions like the following:
>
> > IDLE 2.6.5
> >>>> def function1
Dear Group,
I have a small question on function.
If I write two functions like the following:
IDLE 2.6.5
>>> def function1(n):
element1=5
element2=6
add=element1+element2
print "PRINT THE ADDITION",add
>>> def function2(n):
element3=7
element4=
Dear Group,
I was practising some early example of class if you can kindly let me
know where I was going wrong.
I am pasting directly from IDLE. There may be slight indentation
problem. I am using Python 2.6.4 on Windows XP Service Pack 3.
The Code and the output:
>>> class Student:
def
On Feb 19, 8:49 am, Steve Holden wrote:
> Brendon Wickham wrote:
> > On 19 February 2010 08:07, Mark Lawrence wrote:
> >> Muhammad Alkarouri wrote:
> >>> Your question is borderline if not out of topic in this group. I will
> >>> make a few comments though.
> >> This might be a Python group, but
Dear Group,
I was reading on SOA or Service Oriented Architecture for last few
days and got some questions. As this is a room for the expert computer
scientists, if you can help me solve my queries.
As per I read and felt SOA is an architecture, which relies on few
basic principles as,
the system
Dear Group,
I am trying to learn CGI. I was checking Python Docs. There are
multiple modules. Which one to start with?
Is there any other material or URL for step by step learning of CGI.
My next question is:
I want to test it. I have a small personal computer. I have internet
but is connected by
On Feb 11, 1:57 am, Anthony Tolle wrote:
> On Feb 10, 3:42 pm,joy99 wrote:
>
> > Dear Group,
> > [snip]
> > I tried to change the location to D:\file and as I saw in Python Docs
> > the file reading option is now "r+" so I changed the statement to
> >
Dear Group,
I was using Python with IDLE as GUI for quite some time. My Operating
System was Windows XP with Service Pack2.
Recently I changed the Operating System to Windows XP with Service
Pack3. I had to reinstall Python for which I downloaded
"python-2.6.4.msi"and loaded it in my D drive.
Her
On Dec 28, 5:28 pm, Vlastimil Brom wrote:
> 2009/12/27 joy99 :
>
> > Dear Group,
> > Answers were good. But I am looking for a smarter solution like:
>
> > for i[:2] in list:
> >
>
> > etc. or by doing some looping over loop.
> > Do not wor
On Dec 28, 12:32 pm, Andrew Jonathan Fine
wrote:
> To whom it may concern,
>
> I am the author of "Honeywell Avoids Documentation Costs with Python
> and other Open Standards!"
>
> I was laid off by Honeywell several months after I had made my
> presentation in the 2005 Python Conference.
>
> Sinc
On Dec 27, 8:42 pm, Benjamin Kaplan wrote:
> On Sun, Dec 27, 2009 at 9:44 AM, joy99 wrote:
> > Dear Group,
>
> > I am encountering a small question.
>
> > Suppose, I write the following code,
>
> > input_string=raw_input("PRINT A STRING
Dear Group,
I am encountering a small question.
Suppose, I write the following code,
input_string=raw_input("PRINT A STRING:")
string_to_word=input_string.split()
len_word_list=len(string_to_word)
if len_word_list>9:
rest_words=string_to_word[9:]
len_rest_word=len(rest_
On Dec 4, 6:53 pm, Michele Simionato
wrote:
> After 5 years of postdoc in Physics I decided to changecareerand to
> move to IT. I decided to learn Object Oriented Programming first. I
> chosePythonsince it was already installed on my Linux machine and it
> was easy to tackle for a beginner. In the
On Dec 3, 11:16 am, Tim Roberts wrote:
> joy99 wrote:
>
> >I am a researcher in India's one of the premier institutes.(Indian
> >Institute of Science,Bangalore).
>
> >I have done one MA in Linguistics, did a PhD in Natural Language
> >Processing and doing
On Dec 2, 2:11 am, Phlip wrote:
> joy99 wrote:
> > I have developed the following toolkits:
> > (i) A web based crawler;
> > (ii) A Bayesian classifier;
> > (iii) One NER engine;
> > (iv) One XML parser;
> > (v) One PoS Tagger;
> > (vi) One Parser ba
Dear Group,
I am a researcher in India's one of the premier institutes.(Indian
Institute of Science,Bangalore).
I have done one MA in Linguistics, did a PhD in Natural Language
Processing and doing a Post Doctoral now.
Earlier I knew C/C++ and presently work on Python on WinXP.
I use IDLE to as g
On Nov 28, 2:22 pm, Lie Ryan wrote:
> On 11/28/2009 6:20 PM, joy99 wrote:
>
> > I was writing a transliteration program from Bengali to English and
> > vice versa. The program using Unicode chart is giving me perfect
> > outputs in Bengali and vice versa with Bengali
On Nov 28, 5:35 am, Steven D'Aprano wrote:
> On Fri, 27 Nov 2009 12:41:42 -0800, joy99 wrote:
> > Dear Group,
>
> > I have written a small and simple program like the following:
>
> > def alphabet1(n):
> > file_open=open("/python26/alphabetlist1
On Nov 28, 5:35 am, Steven D'Aprano wrote:
> On Fri, 27 Nov 2009 12:41:42 -0800, joy99 wrote:
> > Dear Group,
>
> > I have written a small and simple program like the following:
>
> > def alphabet1(n):
> > file_open=open("/python26/alphabetlist1
Dear Group,
I have written a small and simple program like the following:
def alphabet1(n):
file_open=open("/python26/alphabetlist1.txt","r")
file_read=file_open.read()
file_word=file_read.split()
print file_word
Here, I am using a file “alphabetlist1.txt” which I am reading and
Dear Group,
As per the standard posted by the UNICODE for the Devnagari script
used for Hindi and some other languages of India, we have a standard
set, like from the range of 0900-097F.
Where, we have numbers for each character:
like 0904 for Devnagari letter short a, etc.
Now, if write a program
On Sep 11, 10:19 pm, Robert Kern wrote:
> On 2009-09-11 11:39 AM,joy99wrote:
>
>
>
>
>
> > Dear Group,
>
> > I am trying to download the following files,
> > a) lxml,
> > b) numpy,
> > c) scipy, and
> > d) django.
>
> > I am trying to include them in C\python26\Lib
>
> > But they are giving error
Dear Group,
I am trying to download the following files,
a) lxml,
b) numpy,
c) scipy, and
d) django.
I am trying to include them in C\python26\Lib
But they are giving error report, as I am trying to use them by
importing.
I am using IDLE as GUI, my OS is WinXP SP2, and my Python version 2.6.
I
On Sep 6, 1:49 pm, Steven D'Aprano wrote:
> On Sun, 06 Sep 2009 00:53:43 -0700,joy99wrote:
> > Dear Group,
>
> > I have a file "test1.txt". Now, as I do the file handling, i try to do
> > any one of the following operations.
>
> > 1. open_file=open("/python26/test1.txt","r") # FOR READING 2.
> > o
Dear Group,
I have a file "test1.txt". Now, as I do the file handling, i try to do
any one of the following operations.
1. open_file=open("/python26/test1.txt","r") # FOR READING
2. open_file=open("/python26/test1.txt","r+") # FOR READING AND
WRITING BOTH
[Either of 1 or 2 to open as the need be]
On Sep 5, 11:49 am, Chris Rebert wrote:
> On Fri, Sep 4, 2009 at 11:39 PM,
> SUBHABRATABANERJEE wrote:
>
>
>
> > And one small question does Python has any increment operator like ++ in C.
>
> No. We do x += 1 instead.
>
> Cheers,
> Chris
> --http://blog.rebertia.com
Thanx for your kind reply
Dear Group,
I have a file. The file has multiple lines. I want to get the line
number of any one of the strings.
Once I get that I like to increment the line number and see the string
of the immediate next line or any following line as output. The
problem as I see is nicely handled in list,
like
On Aug 22, 12:16 pm, Rami Chowdhury wrote:
> > encoding declaration to the top of your source file if you use encoded
> > literal strings in your code
>
> Any tips for how to set the encoding in IDLE? printing the Unicode
> strings works -- trying to repr() the variable chokes with a
> Unicode
On Aug 22, 10:53 am, Stefan Behnel wrote:
> Rami Chowdhury wrote:
> >> I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I
> >> use Python to help me in this regard?
>
> > I can say from experience that Python on Windows (at least, Python 2.5
> > on 32-bit Vista) works perfectly
Dear Group,
I like to convert some simple strings of natural language to XML. May
I use Python to do this? If any one can help me, on this.
I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I
use Python to help me in this regard?
How can I learn good XML aspects of Python. If
On Aug 11, 1:17 pm, John Machin wrote:
> On Aug 10, 9:26 pm, joy99 wrote:
>
> > Dear Group,
>
> > I am using Python26 on WindowsXP with service pack2. My GUI is IDLE.
> > I am using Hindi resources and get nice output like:
> > एक
> > where I can use a
Dear Group,
I am using Python26 on WindowsXP with service pack2. My GUI is IDLE.
I am using Hindi resources and get nice output like:
एक
where I can use all the re functions and other functions without doing
any transliteration,etc.
I was trying to use Bengali but it is giving me output like:
'\xe
64 matches
Mail list logo