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
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
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
3 matches
Mail list logo