Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset class fails to initialize 'vocab' attribute. #12

Open
YanaPalacheva opened this issue Jul 17, 2020 · 0 comments
Open

Dataset class fails to initialize 'vocab' attribute. #12

YanaPalacheva opened this issue Jul 17, 2020 · 0 comments

Comments

@YanaPalacheva
Copy link

Hi! I was trying to run the parser according to the instructions from readme, but the example script fails with the following error:

Traceback (most recent call last):  
  File "scripts/execute.py", line 48, in <module>
    runner = Runner(dataset, args)
  File "C:\Users\Yana\asknow\DeepShallowParsingQA\common\model\runner.py", line 31, in __init__ 
    self.vocab = dataset.vocab
AttributeError: 'Qald_7_ml' object has no attribute 'vocab' 

I think it can't locate the dataset, but I don't really know where I should put it. Could you clarify this?

P.S.: by the way, execute.py fails to import config.py (and other files) from parent directory, the reason (I believe) is that it's not in PYTHONPATH by default. Executing the following script helps [source]:

import os,sys,inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0,parentdir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant