sentiment-analysis-textblob
Version:
A Node.js library for sentiment analysis using TextBlob
9 lines (8 loc) • 337 B
JavaScript
const { execSync } = require('child_process');
try {
execSync('python --version', { stdio: 'ignore' });
console.log('Python found. Installing TextBlob...');
} catch (err) {
console.error('Python not found. Please install Python from https://www.python.org/downloads/ and ensure it is added to PATH.');
process.exit(1);
}