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

Example Code causes Module does not exist error #1

Open
IHMCBrodie opened this issue Sep 7, 2021 · 1 comment
Open

Example Code causes Module does not exist error #1

IHMCBrodie opened this issue Sep 7, 2021 · 1 comment

Comments

@IHMCBrodie
Copy link

IHMCBrodie commented Sep 7, 2021

First off, wanted to say great work on this! I am very interested in this work and I appreciate you laying out clear instructions on this repo.

When running one of the example snippets (seen below), it produces the following error:

python pre_process/text_to_CoNLL.py \
    --src_file trial_data/SentsOnly_ES.txt \
    --out_file trial_data/ES_template_trial.conll \
    --lang ES
Traceback (most recent call last):
  File "text_to_CoNLL.py", line 9, in <module>
    from pre_process.CoNLL_Annotations import CoNLLUP_Token_Template
ModuleNotFoundError: No module named 'pre_process'

I am trying to find a fix for it cause I know it's mostly about the nested module imports but I don't want to have to edit every file and mess with the file structure a bunch so I figured I would let you guys know.

Thanks in advance

@IHMCBrodie
Copy link
Author

I went ahead and removed the "preprocess." from the front of the import statements and that seemed work

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