tdozat / Parser-v2

An updated version of the Parser-v1 repo, used for Stanford's submission in the CoNLL17 shared task.
47 stars 34 forks source link

Package name shadows parser module in the standard library #13

Open wwentland opened 6 years ago

wwentland commented 6 years ago

The codebase contains parser/__init__.py which shadows a module of the same name in the standard library.

As this makes it hard/impossible to import the modules used by Parser-v2, it would be much appreciated if you could rename parser to, say, unstableparser.

lguillou commented 6 years ago

I've been experiencing a similar problem. If I try to use the unstable parser as a module I see the following error:


Traceback (most recent call last):
...
File "/some_path/unstable_parser.py", line 15, in <module>
    from parser import Configurable
ImportError: cannot import name Configurable