MCPcopy Create free account
hub / github.com/ashfawk/oceanhazard-detection / download_nltk_data

Function download_nltk_data

setup_python.py:49–61  ·  view source on GitHub ↗

Download required NLTK data

()

Source from the content-addressed store, hash-verified

47 "Installing spaCy English model")
48
49def download_nltk_data():
50 """Download required NLTK data"""
51 try:
52 import nltk
53 print("🔄 Downloading NLTK data...")
54 nltk.download('punkt', quiet=True)
55 nltk.download('vader_lexicon', quiet=True)
56 nltk.download('stopwords', quiet=True)
57 print("✅ NLTK data downloaded successfully")
58 return True
59 except Exception as e:
60 print(f"❌ Failed to download NLTK data: {e}")
61 return False
62
63def create_data_directories():
64 """Create necessary data directories"""

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected