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

Module nltk not found #9

Closed
emmadedayo opened this issue Mar 4, 2019 · 7 comments
Closed

Module nltk not found #9

emmadedayo opened this issue Mar 4, 2019 · 7 comments
Assignees

Comments

@emmadedayo
Copy link

Can u help with this,am using python3 and whenever i run the .sh script on terminal ,this error shoot out module nltk not found and i have install nltk

@Niger-Volta-LTI Niger-Volta-LTI deleted a comment from nvlong198 Mar 4, 2019
@ruohoruotsi
Copy link
Member

Hello @emmadedayo, for NLTK please refer to the README. Please note that NLTK will need some extra efforts if you've installed it for the first time.

you will need to run python3 from your terminal and do:

 >>> import nltk
 >>> nltk.download('punkt')

This will download the necessary NLTK parts ... otherwise you'll have the error below

Resource punkt not found.
Please use the NLTK Downloader to obtain the resource:

Let me know if that helps.

@ruohoruotsi ruohoruotsi self-assigned this Mar 4, 2019
@Niger-Volta-LTI Niger-Volta-LTI deleted a comment from emmadedayo Mar 4, 2019
@ruohoruotsi
Copy link
Member

@emmadedayo If it will be helpful, I can upload a video that shows the steps in closer detail. Let me know how you get one with the setup. Cheers.

@emmadedayo
Copy link
Author

okay @ruohoruotsi, have done it but still showing error
screenshot from 2019-03-07 17-34-42

@ruohoruotsi
Copy link
Member

@emmadedayo this error is not related to NLTK. The error says to "Please check the path of your train src and tgt files". Since the NLTK issue is resolved I will close this issue.

Regarding the most recent error: I will upload a video that shows the expected output starting from cloning the repo and running the build script.

@emmadedayo
Copy link
Author

Okay @ruohoruotsi,pls upload video

@ruohoruotsi
Copy link
Member

@emmadedayo
(1) Please study the video https://www.youtube.com/watch?v=Lh7XFc7S_8Y, as I clone 2 repos (having already installed dependencies & NLTK) to get the newest code
(2) then I run the training script.

It is important to check the first errors you encounter, for example above in your error-output, your data preprocessing step is failing. You have to debug why. If you follow the steps on a clean system, tested on Linux/Ubuntu & MacOS, you shouldn't meet any problems. Let me know how you get on, and we'll work to resolve all issues.

@ruohoruotsi
Copy link
Member

@emmadedayo I have added a Quickstart using a pre-trained model (so you don't have to train your own model). Please try this short Jupyter notebook and see if it can help out. Cheers

https://github.com/Niger-Volta-LTI/yoruba-adr/blob/master/correct_yoruba_diacritics.ipynb

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

2 participants