Add args to PennTree

If this is what you do in pylearn2, no problems.


On Thu, Jun 26, 2014 at 10:33 AM, Mehdi Mirza <notifications@github.com>
wrote:

> In pylearn2/sandbox/nlp/datasets/penntree.py:
>
> > @@ -36,6 +36,10 @@ def __init__(self, which_set, context_len, shuffle=True):
> >          """
> >          Loads the data and turns it into n-grams
> >          """
> > +
> > +        self.__dict__.update(locals())
> > +        del self.self
> > +
>
> This is the pattern used throughout the whole library.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lisa-lab/pylearn2/pull/1002/files#r14243137>.
>