On Wednesday, June 13, 2018 at 6:30:45 AM UTC+5:30, Cameron Simpson wrote:
> On 11Jun2018 13:48, Subhabrata Banerjee wrote:
> >I have the following sentence,
> >
> >"Donald Trump is the president of United States of America".
> >
> >I am trying to extract the index 'of', not only for single but
I have the following sentence,
"Donald Trump is the president of United States of America".
I am trying to extract the index 'of', not only for single but also
for its multi-occurance (if they occur), from the list of words of the
string, made by simply splitting the sentence.
index1=[index
On Sunday, May 27, 2018 at 2:41:43 AM UTC+5:30, Cameron Simpson wrote:
> On 26May2018 04:02, Subhabrata Banerjee wrote:
> >On Saturday, May 26, 2018 at 3:54:37 AM UTC+5:30, Cameron Simpson wrote:
> >> It sounds like you want a more general purpose parser, and that depends
> >> upon
> >> your
On Saturday, May 26, 2018 at 3:54:37 AM UTC+5:30, Cameron Simpson wrote:
> On 25May2018 04:23, Subhabrata Banerjee wrote:
> >On Friday, May 25, 2018 at 3:59:57 AM UTC+5:30, Cameron Simpson wrote:
> >> On 24May2018 03:13, wrote:
> >> >I have a text as,
> >> >
> >> >"Hawaii volcano generates toxic
On Friday, May 25, 2018 at 3:59:57 AM UTC+5:30, Cameron Simpson wrote:
> First up, thank you for a well described problem! Remarks inline below.
>
> On 24May2018 03:13, wrote:
> >I have a text as,
> >
> >"Hawaii volcano generates toxic gas plume called laze PAHOA: The eruption of
> >Kilauea
I have a text as,
"Hawaii volcano generates toxic gas plume called laze PAHOA: The eruption of
Kilauea volcano in Hawaii sparked new safety warnings about toxic gas on the
Big Island's southern coastline after lava began flowing into the ocean and
setting off a chemical reaction. Lava haze is
On Tuesday, May 22, 2018 at 3:55:58 PM UTC+5:30, Peter Otten wrote:
>
>
> > lst2=lst1[:4]
> > with open("my_csv.csv","wb") as f:
> > writer = csv.writer(f)
> > writer.writerows(lst2)
> >
> > Here it is writing only the first four lists.
>
> Hint: look at the first line
I have a list of lists (177 lists).
I am trying to write them as file.
I used the following code to write it in a .csv file.
import csv
def word2vec_preprocessing():
a1=open("/python27/EngText1.txt","r")
list1=[]
for line in a1:
line1=line.lower().replace(".","").split()
I wrote a small piece of following code
import nltk
from nltk.corpus.reader import TaggedCorpusReader
from nltk.tag import CRFTagger
def NE_TAGGER():
reader = TaggedCorpusReader('/python27/', r'.*\.pos')
f1=reader.fileids()
print "The Files of Corpus are:",f1
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
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
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 =
I have a string like
"Trump is $ the president of USA % Obama was $ the president of USA % Putin is
$ the premier of Russia%"
Here, I want to extract the portions from $...%, which would be
"the president of USA",
"the president of USA",
"the premier of Russia"
and would work some post
On Friday, December 30, 2016 at 7:16:25 AM UTC+5:30, Steve D'Aprano wrote:
> On Sun, 25 Dec 2016 04:50 pm, Grady Martin wrote:
>
> > On 2016年12月22日 22時38分, wrote:
> >>I am getting the error:
> >>UnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in position 15:
> >>invalid start byte
> >
>
On Friday, December 30, 2016 at 3:35:56 AM UTC+5:30, subhaba...@gmail.com wrote:
> On Monday, December 26, 2016 at 3:37:37 AM UTC+5:30, Gonzalo V wrote:
> > Try utf-8-sig
> > El 25 dic. 2016 2:57 AM, "Grady Martin" <> escribió:
> >
> > > On 2016年12月22日 22時38分, wrote:
> > >
> > >> I am getting
On Monday, December 26, 2016 at 3:37:37 AM UTC+5:30, Gonzalo V wrote:
> Try utf-8-sig
> El 25 dic. 2016 2:57 AM, "Grady Martin" <> escribió:
>
> > On 2016年12月22日 22時38分, wrote:
> >
> >> I am getting the error:
> >> UnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in position 15:
> >>
I am getting the error:
UnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in position 15: invalid
start byte
as I try to read some files through TaggedCorpusReader. TaggedCorpusReader is a
module
of NLTK.
My files are saved in ANSI format in MS-Windows default.
I am using Python2.7 on
I have a python script where I am trying to read from a list of files in a
folder and trying to process something.
As I try to take out the output I am presently appending to a list.
But I am trying to write the result of individual files in individual list or
files.
The script is as follows:
On Saturday, November 12, 2016 at 7:34:31 AM UTC+5:30, Steve D'Aprano wrote:
> On Sat, 12 Nov 2016 09:29 am wrote:
>
> > I have a string
> > "Hello my name is Richard"
> >
> > I have a list of words as,
> > ['Hello/Hi','my','name','is','Richard/P']
> >
> > I want to identify the match of
I have a string
"Hello my name is Richard"
I have a list of words as,
['Hello/Hi','my','name','is','Richard/P']
I want to identify the match of 'Hello' and 'Richard'
in list, and replace them with 'Hello/Hi" and 'Richard/P'
respectively.
The result should look like,
"Hello/Hi my name is
On Monday, April 25, 2016 at 10:07:13 PM UTC+5:30, Steven D'Aprano wrote:
>
>
> > Dear Group,
> >
> > I have a list of tuples, as follows,
> >
> > list1=[u"('koteeswaram/BHPERSN engaged/NA himself/NA in/NA various/NA
> [... 17 more lines of data ...]
>
> Hi Subhabrata, and thanks for the
On Monday, April 25, 2016 at 10:07:13 PM UTC+5:30, Steven D'Aprano wrote:
> On Tue, 26 Apr 2016 12:56 am, wrote:
>
> > Dear Group,
> >
> > I have a list of tuples, as follows,
> >
> > list1=[u"('koteeswaram/BHPERSN engaged/NA himself/NA in/NA various/NA
> [... 17 more lines of data ...]
>
> Hi
Dear Group,
I have a list of tuples, as follows,
list1=[u"('koteeswaram/BHPERSN engaged/NA himself/NA in/NA various/NA
philanthropic/NA activities/NA ','class1')", u"('koteeswaram/BHPERSN is/NA
a/NA very/NA nice/NA person/NA ','class1')", u"('koteeswaram/BHPERSN came/NA
to/NA mumbai/LOC
On Friday, March 11, 2016 at 12:22:31 AM UTC+5:30, Matt Wheeler wrote:
> On 10 March 2016 at 18:12, wrote:
> > Matt, thank you for if...else suggestion, the data of NewTotalTag.txt
> > is like a simple list of words with unconventional tags, like,
> >
> > w1 tag1
> > w2 tag2
> > w3 tag3
> > ...
On Wednesday, March 9, 2016 at 9:49:17 AM UTC+5:30, subhaba...@gmail.com wrote:
> Dear Group,
>
> I am trying to write a code for pulling data from MySQL at the backend and
> annotating words and trying to put the results as separated sentences with
> each line. The code is generally running
Dear Group,
I am trying to write a code for pulling data from MySQL at the backend and
annotating words and trying to put the results as separated sentences with each
line. The code is generally running fine but I am feeling it may be better in
the end of giving out sentences, and for small
I have few sentences, like,
the film was nice.
leonardo is great.
it was academy award.
Now I want them to be tagged with some standards which may look like,
the DT film NN was AV nice ADJ
leonardo NN is AV great ADJ
it PRP was AV academy NN award NN
I could do it but my goal is to see it
On Saturday, February 27, 2016 at 9:43:56 PM UTC+5:30, Rustom Mody wrote:
> On Saturday, February 27, 2016 at 2:47:53 PM UTC+5:30, subhaba...@gmail.com
> wrote:
> > I was trying to implement the code,
> >
> > import nltk
> > import nltk.tag, nltk.chunk, itertools
> > def
I was trying to implement the code,
import nltk
import nltk.tag, nltk.chunk, itertools
def ieertree2conlltags(tree, tag=nltk.tag.pos_tag):
words, ents = zip(*tree.pos())
iobs = []
prev = None
for ent in ents:
if ent == tree.node:
iobs.append('O')
Hi
I am trying to use the following set of tuples in list of lists.
I am using a Python based library named, NLTK.
>>> import nltk
>>> from nltk.corpus import brown as bn
>>> bt=bn.tagged_sents()
>>> bt_5=bt[:5]
>>> print bt
[[(u'The', u'AT'), (u'Fulton', u'NP-TL'), (u'County', u'NN-TL'),
On Friday, July 10, 2015 at 5:36:48 PM UTC+5:30, Laura Creighton wrote:
In a message of Fri, 10 Jul 2015 04:46:25 -0700,
writes:
Dear Group,
I am trying to make a search engine. I used Whoosh to do it.
I want to add documents to it. This is going fine.
Now, I want to add documents in
On Sunday, February 22, 2015 at 2:42:48 PM UTC+5:30, Laura Creighton wrote:
In a message of Sat, 21 Feb 2015 22:07:30 -0800, write
Dear Sir,
Thank you for your kind suggestion. Let me traverse one by one.
My special feature is generally Semantic Search, but I am trying to build
a search
On Sunday, February 22, 2015 at 11:08:47 AM UTC+5:30, Denis McMahon wrote:
On Sat, 21 Feb 2015 21:02:34 -0800, subhabangalore wrote:
Thank you for your suggestion. But I was looking for a small tutorial of
algorithm of the whole engine. I would try to check it build individual
modules
On Sunday, February 22, 2015 at 10:12:39 AM UTC+5:30, Steven D'Aprano wrote:
wrote:
Dear Group,
I am trying to build a search engine in Python.
How to design a search engine in Python?
First, design a search engine.
Then, write Python code to implement that search engine.
Dear Group,
I am trying to build a search engine in Python.
To do this, I have read tutorials and working methodologies from web and books
like Stanford IR book [ http://www-nlp.stanford.edu/IR-book/]. I know how to
design a crawler, I know PostgresSql, I am fluent with PageRank, TF-IDF,
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].
In the next part, I am trying to store
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
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 kindly help.
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 discussed
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.
--
On Sunday, June 29, 2014 7:31:37 PM UTC+5:30, Roy Smith wrote:
In article mailman.11325.1404048700.18130.python-l...@python.org,
Dave Angel da...@davea.name wrote:
subhabangal...@gmail.com Wrote in message:
Dear Group,
I am trying to crawl multiple URLs. As they are
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] * prev_f_sum
On Thursday, June 19, 2014 12:30:12 PM UTC+5:30, Ian wrote:
On Wed, Jun 18, 2014 at 11:50 PM, wrote:
Thank you for the reply. But as I checked it again I found,
f_prev[k] is giving values of f_curr[st] = e[st][x_i] * prev_f_sum
which is calculated later and again uses prev_f_sum.
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() so it must be
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)
a[k][st], and
Dear Group,
I have a Python code taken from
Wikipedia.(http://en.wikipedia.org/wiki/Forward%E2%80%93backward_algorithm;)
The code is pasted below.
states = ('Healthy', 'Fever')
end_state = 'E'
observations = ('normal', 'cold', 'dizzy')
start_probability = {'Healthy': 0.6, 'Fever': 0.4}
On Thursday, June 19, 2014 12:45:49 AM UTC+5:30, Ian wrote:
The questions are,
i) prev_f_sum = sum(f_prev[k]*a[k][st] for k in states)
here f_prev is called,
f_prev is assigned to f_curr [f_prev = f_curr]
f_curr[st] is again being calculated as, [f_curr[st] = e[st][x_i] *
Dear Group,
It seems there is a nice language processing library named TextBlob, like NLTK.
But I am being unable to install it on my Windows(MS-Windows 7 machine. I am
using Python 2.7
If anyone of the esteemed members may kindly suggest me the solution.
I tried the note in following URL
On Sunday, May 11, 2014 12:57:34 AM UTC+5:30, subhaba...@gmail.com wrote:
Dear Room,
I was trying to go through a code given in
http://en.wikipedia.org/wiki/Forward%E2%80%93backward_algorithm[ Forward
Backward is an algorithm of Machine Learning-I am not talking on that
I am just
On Sunday, May 11, 2014 11:50:32 AM UTC+5:30, subhaba...@gmail.com wrote:
On Sunday, May 11, 2014 12:57:34 AM UTC+5:30, subhaba...@gmail.com wrote:
Dear Room,
I was trying to go through a code given in
http://en.wikipedia.org/wiki/Forward%E2%80%93backward_algorithm[
Dear Room,
I was trying to go through a code given in
http://en.wikipedia.org/wiki/Forward%E2%80%93backward_algorithm[ Forward
Backward is an algorithm of Machine Learning-I am not talking on that
I am just trying to figure out a query on its Python coding.]
I came across the following codes.
Dear Group,
I am trying to work out a solution to the following problem in Python.
The Problem:
Suppose I have three lists.
Each list is having 10 elements in ascending order.
I have to construct one list having 10 elements which are of the lowest value
among these 30 elements present in the
Dear Group,
I am trying to use Gensim for Topic Modeling with LDA.
I have trained LDA but now I want to test it with new documents.
Should I use
doc_lda = lda[doc_bow]
or is it something else?
If any one of the esteemed members of the group can kindly suggest?
Thanking in Advance,
Dear Group,
I was looking for a good tutorial for a HTML Parser. My intention was to
extract tables from web pages or information from tables in web pages.
I tried to make a search, I got HTMLParser, BeautifulSoup, etc. HTMLParser
works fine for me, but I am looking for a good tutorial to
Dear Group,
I am trying to search the following pattern in Python.
I have following strings:
(i)In the ocean
(ii)On the ocean
(iii) By the ocean
(iv) In this group
(v) In this group
(vi) By the new group
.
I want to extract from the first word to the last word,
where first
On Saturday, June 15, 2013 7:58:44 PM UTC+5:30, Mark Lawrence wrote:
On 15/06/2013 14:45, Denis McMahon wrote:
On Sat, 15 Jun 2013 13:41:21 +, Denis McMahon wrote:
first_and_last = [sentence.split()[i] for i in (0, -1)] middle =
sentence.split()[1:-2]
Bugger! That last
On Saturday, June 15, 2013 8:34:59 PM UTC+5:30, Mark Lawrence wrote:
On 15/06/2013 15:31, subhabangal...@gmail.com wrote:
Dear Group,
I know this solution but I want to have Regular Expression option. Just
learning.
Regards,
Subhabrata.
Start here
On Saturday, June 15, 2013 3:12:55 PM UTC+5:30, subhaba...@gmail.com wrote:
Dear Group,
I am trying to search the following pattern in Python.
I have following strings:
(i)In the ocean
(ii)On the ocean
(iii) By the ocean
(iv) In this group
(v) In this group
On Sunday, June 16, 2013 12:17:18 AM UTC+5:30, ru...@yahoo.com wrote:
On Saturday, June 15, 2013 11:54:28 AM UTC-6, subhaba...@gmail.com wrote:
Thank you for the answer. But I want to learn bit of interesting
regular expression forms where may I?
No Mark, thank you for your links
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
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,
Subhabrata.
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 in Python.
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,
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
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,
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 trying to draw in
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.
--
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. Do
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
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.
plt.subplot()
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
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.
Thanking
Dear Group,
I am looking for a Python implementation of Maximum Likelihood Estimation. If
any one can kindly suggest. With a google search it seems
scipy,numpy,statsmodels have modules, but as I am not finding proper example
workouts I am failing to use them.
I am using Python 2.7 on Windows
On Friday, February 1, 2013 11:07:48 PM UTC+5:30, 8 Dihedral wrote:
subhaba...@gmail.com於 2013年2月2日星期六UTC+8上午1時17分04秒寫道:
Dear Group,
I am looking for a Python implementation of Maximum Likelihood Estimation.
If any one can kindly suggest. With a google search it
On Friday, February 1, 2013 10:47:04 PM UTC+5:30, subhaba...@gmail.com wrote:
Dear Group,
I am looking for a Python implementation of Maximum Likelihood Estimation. If
any one can kindly suggest. With a google search it seems
scipy,numpy,statsmodels have modules, but as I am not
Dear Group,
As I know Python Foundation organizes some conferences all through the year.
Most probably they are known as Pycon. But I have some different question. The
question is, is it possible to attend it by Video Conferencing? Or if I request
for the same will it be granted?
Regards,
On Friday, January 4, 2013 11:18:24 AM UTC+5:30, Steven D'Aprano wrote:
On Thu, 03 Jan 2013 12:04:03 -0800, subhabangalore wrote:
Dear Group,
If I take a list like the following:
fruits = ['banana', 'apple', 'mango']
for fruit in fruits:
print 'Current fruit
Dear Group,
I have a list like,
list1=[1,2,3,4,5,6,7,8,9,10,11,12]
Now, if I want to take a slice of it, I can.
It may be done in,
list2=list1[:3]
print list2
[1, 2, 3]
If I want to iterate the list, I may do as,
for i in list1:
print Iterated Value Is:,i
Iterated Value
Dear Group,
I have two questions, if I take a subseries of the matrix as in eigenvalue here,
provided I have one graph of the full form in G, how may I show it, as if I do
the nx.draw(G) it takes only the original graph.
import numpy
import networkx as nx
import matplotlib.pyplot as plt
On Monday, January 14, 2013 6:05:49 AM UTC+5:30, Steven D'Aprano wrote:
On Sun, 13 Jan 2013 12:05:54 -0800, subhabangalore wrote:
Dear Group,
I have two questions, if I take a subseries of the matrix as in
eigenvalue here, provided I have one graph of the full form in G, how
Dear Group,
If I take a list like the following:
fruits = ['banana', 'apple', 'mango']
for fruit in fruits:
print 'Current fruit :', fruit
Now,
if I want variables like var1,var2,var3 be assigned to them, we may take,
var1=banana,
var2=apple,
var3=mango
but can we do something to
Dear Group,
In networkx module we generally try to draw the graph as,
import networkx as nx
G=nx.Graph()
G.add_edge(1, 2, weight=4.7 )
G.add_edge(1, 3, weight=4.5 )
.
Now, if I want to retrieve the information of traversal from 1 to 3, I can
give,
G.edges()
but I am looking for a
On Tuesday, December 11, 2012 2:10:07 AM UTC+5:30, subhaba...@gmail.com wrote:
Dear Group,
I am trying to enumerate few interesting errors on pylab/matplotlib.
If any of the learned members can kindly let me know how should I address
them.
I am trying to enumerate them as
Dear Group,
I am trying to enumerate few interesting errors on pylab/matplotlib.
If any of the learned members can kindly let me know how should I address them.
I am trying to enumerate them as follows.
i) import numpy
import pylab
t = numpy.arange(0.0, 1.0+0.01, 0.01)
s =
Dear Group,
I am looking at a readymade tool to resolve anaphora, and I am looking a Python
based one. I checked NLTK. It has DRT parser. But I do not like that. In other
parsers you have to insert grammar. But I am looking for a completely built in.
If anyone can kindly suggest.
Regards,
T
On Friday, December 7, 2012 9:47:46 AM UTC+5:30, Miki Tebeka wrote:
On Thursday, December 6, 2012 2:15:53 PM UTC-8, subhaba...@gmail.com wrote:
I am looking for some example of implementing Cosine similarity in python.
I searched for hours but could not help much. NLTK seems to have a
Dear Group,
I am looking for some example of implementing Cosine similarity in python. I
searched for hours but could not help much. NLTK seems to have a module but did
not find examples.
If anyone of the learned members may kindly help out.
Regards,
Subhabrata.
--
Dear Group,
I am trying to use the cluster module as,
from cluster import *
data = [12,34,23,32,46,96,13]
cl = HierarchicalClustering(data, lambda x,y: abs(x-y))
cl.getlevel(10)
[[96], [46], [12, 13, 23, 34, 32]]
cl.getlevel(5)
[[96], [46], [12, 13], [23], [34, 32]]
but now I want to
On Wednesday, December 5, 2012 2:33:56 AM UTC+5:30, Miki Tebeka wrote:
On Tuesday, December 4, 2012 11:04:15 AM UTC-8, subhaba...@gmail.com wrote:
cl = HierarchicalClustering(data, lambda x,y: abs(x-y))
but now I want to visualize it if any one suggest how may I use
visualization(like
Dear Group,
I have a tuple of list as,
tup_list=[(1,2), (3,4)]
Now if I want to covert as a simple list,
list=[1,2,3,4]
how may I do that?
If any one can kindly suggest? Googling didn't help much.
Regards,
Subhabrata.
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday, December 4, 2012 1:28:17 AM UTC+5:30, subhaba...@gmail.com wrote:
Dear Group,
I have a tuple of list as,
tup_list=[(1,2), (3,4)]
Now if I want to covert as a simple list,
list=[1,2,3,4]
how may I do that?
If any one can kindly suggest? Googling
Dear Group,
I am trying to work out a data visualization module.
Here,
I am taking raw corpus,and processing it
linguistically(tokenization,tagging,NED recognition)
and then trying to link the NED's with Latent Semantic Analysis or Relationship
Mining or Network graph theory or cluster
Dear Group,
I am using NLTK and I used the following command,
chunk=nltk.ne_chunk(tag)
print The Chunk of the Line Is:,chunk
The Chunk of the Line Is: (S
''/''
It/PRP
is/VBZ
virtually/RB
a/DT
homecoming/NN
,/,
''/''
said/VBD
(PERSON Gen/NNP Singh/NNP)
on/IN
arrival/NN)
On Sunday, December 2, 2012 5:39:32 PM UTC+5:30, subhaba...@gmail.com wrote:
Dear Group,
I am using NLTK and I used the following command,
chunk=nltk.ne_chunk(tag)
print The Chunk of the Line Is:,chunk
The Chunk of the Line Is: (S
''/''
It/PRP
is/VBZ
Dear Group,
I have a list of the following pattern,
[('', ''), ('Eastern', 'NNP'), ('Army', 'NNP'), ('Commander', 'NNP'),
('Lt', 'NNP'), ('Gen', 'NNP'), ('Dalbir', 'NNP'), ('Singh', 'NNP'), ('Suhag',
'NNP'), ('briefed', 'VBD'), ('the', 'DT'), ('Army', 'NNP'), ('chief', 'NN'),
('on', 'IN'),
On Sunday, December 2, 2012 9:29:22 PM UTC+5:30, Thomas Bach wrote:
On Sun, Dec 02, 2012 at 04:16:01PM +0100, Lutz Horn wrote:
len([x for x in l if x[1] == 'VBD'])
Another way is
sum(1 for x in l if x[1] == 'VBD')
which saves the list creation.
Regards,
On Saturday, December 1, 2012 5:13:17 AM UTC+5:30, Dave Angel wrote:
On 11/30/2012 02:48 PM, subhabangal...@gmail.com wrote:
Dear Group,
Python has one textming library, but I am failing to install it in Windows.
If any one can kindly help.
Regards,
Subhabrata.
Please
Dear Group,
Python has one textming library, but I am failing to install it in Windows.
If any one can kindly help.
Regards,
Subhabrata.
--
http://mail.python.org/mailman/listinfo/python-list
Dear Group,
I am looking for some Python based Natural Language Tools.
(i)Parsers (either syntactic or semantic). NLTK has but there I have to input
the grammar. I am looking for straight built in library like nltk tagging
module.
(ii) I am looking for some ner extraction tools. NLTK has I am
On Tuesday, November 13, 2012 4:12:52 PM UTC+5:30, Peter Otten wrote:
subhabangal...@gmail.com wrote:
Dear Group,
To improve my code writing I am trying to read good codes. Now, I have
received a code,as given below,(apology for slight indentation errors) the
code is running
1 - 100 of 125 matches
Mail list logo