Download required NLTK data
()
| 47 | "Installing spaCy English model") |
| 48 | |
| 49 | def 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 | |
| 63 | def create_data_directories(): |
| 64 | """Create necessary data directories""" |