Open goswamig opened 6 years ago
This indeed solved my problem. Not sure why though it worked
Thanks...helped me too
it worked ....
This worked. Thanks
Thanks for the Help
It works. thanks for the help.
Where to add those lines?
!pip install nltk nltk.download('punkt')
If you have your VPN on, make sure you turn it off.
I turned it off, ran nltk.download('punkt')
and then it finally worked.
I wasn't able to download punkt via nltk, so I found this thread on Stack which helped me. https://stackoverflow.com/questions/38916452/nltk-download-ssl-certificate-verify-failed
f45c89a20de7:dialog_converter gauta$ python3 converter.py Traceback (most recent call last): File "converter.py", line 10, in
SENT_DETECTOR = nltk.data.load('tokenizers/punkt/english.pickle')
File "/usr/local/lib/python3.6/site-packages/nltk/data.py", line 836, in load
opened_resource = _open(resource_url)
File "/usr/local/lib/python3.6/site-packages/nltk/data.py", line 954, in open
return find(path, path + ['']).open()
File "/usr/local/lib/python3.6/site-packages/nltk/data.py", line 675, in find
raise LookupError(resource_not_found)
import nltk.data
LookupError:
Resource punkt not found. Please use the NLTK Downloader to obtain the resource:
Searched in:
Fix: Just add the below line.
+nltk.download('punkt') + SENT_DETECTOR = nltk.data.load('tokenizers/punkt/english.pickle')