Python Forum
Dont quote me on this!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dont quote me on this!
#11
(Oct-20-2016, 10:09 PM)Yoriz Wrote:
(Oct-20-2016, 10:08 PM)Yoriz Wrote:
(Oct-20-2016, 10:06 PM)metulburr Wrote:
Quote:Is there really any need for people to quote a previous posts to reply to it when its right there above the one you just made. 

I usually use the fast quote to select a portion of the quote i want to show.......and its also probably out of habit from the old forum. But quoting the post is easier than grabbing specific portions....probably is why people do that.

this is what was happening in that thread

And then this Funnyface

I will not)
Reply
#12
Is this the towers of Hanoi post?
Reply
#13
(Oct-20-2016, 09:44 PM)Yoriz Wrote:
Yoriz Wrote: Wrote:This thread needs the quote feature disabled. [Image: smiley-faces-75.gif]

(4 minutes ago)pythlang Wrote: Wrote:
(25 minutes ago)snippsat Wrote: Wrote:
(1 hour ago)pythlang Wrote: Wrote:I literally do not understand the difference.
Would you be able to explain in general what just happened?
"tokenized" is now given as a argument to the function,this make it clearer that is shall be used in function.
Global variables are usually not a good thing at all,will soon get messy.

Thanks for the clarification.

If I were adding code like this
def process_content():
    try:
        for i in tokenized:
            words = nltk.word_tokenize(i)
            tagged = nltk.pos_tag(words)
             
            chunkGram = r"""Chunk: {<RB.?>*<VB.?>*<NNP><NN>?}"""
 
            chunkParser = nltk.RegexpParser(chunkGram)
            chunked = chunkParser.parse(tagged)
 
            chunked.draw()
 
    except Exception as e:
        print(str(e))
 
process_content()
How would I write it instead using your method?

by the way, this is where "chunked.draw()" fails and I get no output to the screen because I'm not sure if my matplotlib path is correct.

(7 minutes ago)Yoriz Wrote: Wrote:This thread needs the quote feature disabled. [Image: smiley-faces-75.gif]

"What do you mean?"

-Justin Bieber

(2 minutes ago)Yoriz Wrote: Wrote:
(7 minutes ago)Yoriz Wrote: Wrote:This thread needs the quote feature disabled. [Image: smiley-faces-75.gif]

(4 minutes ago)pythlang Wrote: Wrote:
(25 minutes ago)snippsat Wrote: Wrote:
(1 hour ago)pythlang Wrote: Wrote:I literally do not understand the difference.
Would you be able to explain in general what just happened?
"tokenized" is now given as a argument to the function,this make it clearer that is shall be used in function.
Global variables are usually not a good thing at all,will soon get messy.

Thanks for the clarification.

If I were adding code like this
def process_content():
    try:
        for i in tokenized:
            words = nltk.word_tokenize(i)
            tagged = nltk.pos_tag(words)
             
            chunkGram = r"""Chunk: {<RB.?>*<VB.?>*<NNP><NN>?}"""
 
            chunkParser = nltk.RegexpParser(chunkGram)
            chunked = chunkParser.parse(tagged)
 
            chunked.draw()
 
    except Exception as e:
        print(str(e))
 
process_content()
how would I write it instead using your method?

by the way, this is where "chunked.draw()" fails and I get no output to the screen because I'm not sure if my matplotlib path is correct.

[Image: bonk.gif] [Image: smiley-faces-75.gif]

If you cant beat them join them [Image: funnyface.gif]
Get quoted kid.
The K Man.
Reply
#14
Any limit for this?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#15
Yeah, once determined out of control, it's called warning ... if it continues, perhaps ban
This is not a playground
Reply
#16
(Nov-07-2016, 09:36 PM)wavic Wrote: Any limit for this?
Ill research it. I think the hard part is to determine what is ok and what is not. Simple banning any nested quote could be bad because sometimes a single nested quote makes it more detailed. The only reason i let it go was because its in bar.
Recommended Tutorials:
Reply
#17
Not suggesting ban, just stop the foolishness
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Monty Python Quote Most Applicable to Programming ichabod801 4 2,898 Nov-07-2019, 03:25 PM
Last Post: stullis
  Dont keep this alive! Kai. 4 4,686 Nov-07-2016, 07:37 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020