This project leverages AWS Serverless Application Model (SAM) to build an automated sentiment analysis pipeline using AWS Comprehend. It enables seamless text analysis to determine sentiment polarity (positive, negative, neutral, or mixed).
For a detailed explanation of the implementation, visit my blog: Sentiment Analysis Pipeline.
-
Serverless Deployment: Utilizes AWS SAM for easy deployment and scalability.
-
AWS Comprehend Integration: Analyzes text sentiment with high accuracy.
-
Scalable and Cost-Effective: Pay-as-you-go pricing with AWS Lambda.
-
Automated Processing: Handles real-time or batch sentiment analysis.
Ensure you have the following installed:
-
Go 2.22
- Clone the repository
git clone https://github.com/your-repo/sam-awscomprehend-pipeline.git
cd sam-awscomprehend-pipeline
- Build the project
sam build -u
- Deploy the Application:
sam deploy -g
Follow the prompts to configure AWS credentials and stack settings.
Once deployed, the pipeline will process input text and return sentiment analysis results via AWS Lambda and AWS Comprehend. You can invoke the Lambda function manually or integrate it with an API Gateway for real-time analysis.
This project follows a serverless architecture using:
-
API Gatway
-
AWS Lambda for processing text data.
-
AWS Comprehend for sentiment analysis.
-
AWS Firehose for real time streaming.
-
Amazon S3 for storing text data.
Contributions are welcome! Feel free to fork the repository and submit a pull request