Spaces:
Running
Running
| # 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 |