I want to deploy nlp project but this error comes

File “/opt/render/project/src/.venv/lib/python3.11/site-packages/nltk/data.py”, line 583, in find

May 14 06:41:51 PM raise LookupError(resource_not_found)

May 14 06:41:51 PMLookupError:

May 14 06:41:51 PM**********************************************************************

May 14 06:41:51 PM Resource stopwords not found.

May 14 06:41:51 PM Please use the NLTK Downloader to obtain the resource:

May 14 06:41:51 PM

May 14 06:41:51 PM >>> import nltk

May 14 06:41:51 PM >>> nltk.download(‘stopwords’)

May 14 06:41:51 PM

May 14 06:41:51 PM For more information see: NLTK :: Installing NLTK Data

May 14 06:41:51 PM

May 14 06:41:51 PM Attempted to load corpora/stopwords

May 14 06:41:51 PM

May 14 06:41:51 PM Searched in:

May 14 06:41:51 PM - ‘/opt/render/nltk_data’

May 14 06:41:51 PM - ‘/opt/render/project/src/.venv/nltk_data’

May 14 06:41:51 PM - ‘/opt/render/project/src/.venv/share/nltk_data’

May 14 06:41:51 PM - ‘/opt/render/project/src/.venv/lib/nltk_data’

May 14 06:41:51 PM - ‘/usr/share/nltk_data’

May 14 06:41:51 PM - ‘/usr/local/share/nltk_data’

May 14 06:41:51 PM - ‘/usr/lib/nltk_data’

May 14 06:41:51 PM - ‘/usr/local/lib/nltk_data’

May 14 06:41:51 PM**********************************************************************

how to resolve his

Hi there,

From the logs you provided, it looks like the cause of the failure is explained:

May 14 06:41:51 PM raise LookupError(resource_not_found)May 14 06:41:51 PMLookupError:May 14 06:41:51 PM**********************************************************************May 14 06:41:51 PM Resource stopwords not found.

Let us know if you have any further questions.

Regards,
Mike


Render Support Engineer, MT (UTC-6, UTC-7 in Winter)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.