Re: Problem in returning the value.

2011-02-23 Thread Daniel Roseman
On Wednesday, February 23, 2011 9:10:14 AM UTC+1, cuteangel wrote: > > this is the class from models.py- > class NatPar(models.Model): > @staticmethod > def handle_review(self): > > > > and calling function is like this- > > response=NatPar.handle_review > > return rend

Re: Problem in returning the value.

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 12:10:14 am cuteangel wrote: > this is the class from models.py- > class NatPar(models.Model): > @staticmethod > def handle_review(self): > try: > grammar=nltk.parse_cfg(""" > S->VP NP > PP->P N > NP->De

Problem in returning the value.

2011-02-23 Thread cuteangel
this is the class from models.py- class NatPar(models.Model): @staticmethod def handle_review(self): try: grammar=nltk.parse_cfg(""" S->VP NP PP->P N NP->Det N PP VP->V Det Det ->'me'|'the' N->'revie