import nltk import ssl try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: pass else: ssl._create_default_https_context = _create_unverified_https_context download_dir = "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/llama_index/core/_static/nltk_cache" nltk.download("stopwords", download_dir=download_dir) nltk.download("punkt", download_dir=download_dir)