Spaces:
Running
Running
File size: 1,199 Bytes
19aa29f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #!/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 |