#!/bin/bash # Advanced NLP Pipeline Validation Script # This script validates the installation and setup of the Advanced NLP Pipeline echo "🚀 Advanced NLP Pipeline Validation" echo "==================================" echo "" # Check if Python is available if ! command -v python3 &> /dev/null; then echo "❌ Python 3 is not installed or not in PATH" exit 1 fi # Check if we're in the right directory if [ ! -f "app/services/advanced_nlp.py" ]; then echo "❌ Please run this script from the project root directory" echo " Current directory: $(pwd)" exit 1 fi # Set PYTHONPATH to include the current directory export PYTHONPATH="${PYTHONPATH}:$(pwd)" # Run the validation script echo "Running validation checks..." echo "" python3 scripts/validate_nlp_setup.py # Capture exit code exit_code=$? echo "" if [ $exit_code -eq 0 ]; then echo "🎉 Validation completed successfully!" echo " The Advanced NLP Pipeline is ready to use." else echo "⚠️ Validation found issues." echo " Please address the issues above before using the Advanced NLP Pipeline." fi echo "" echo "For more information, see: docs/NLP_IMPLEMENTATION.md" exit $exit_code