This project utilizes the Natural Language Processing (NLP) capabilities of the IBM Cloud API to analyze movie reviews, and IBM Cloud pipeline to deploy the code. The API is used to determine the sentiment of a given review, as well as identify key entities and concepts mentioned in the review
- Sign up for an IBM Cloud account and create a new instance of the Natural Language Understanding (NLU) service.
- Obtain the API key for the NLU service and add it to your environment variables or code.
- Create a new pipeline in IBM Cloud, and connect your GitHub repository containing the code for the NLP analysis.
- Use the NLU service's API to analyze movie reviews by sending a POST request with the review text and desired features (e.g. sentiment analysis, entity recognition).
- Use the returned data to display the sentiment and key entities/concepts of the review.
- In pipeline configuration, add a deploy action and select the appropriate cluster and namespace.
- You can trigger the pipeline manually or configure it to trigger automatically when there is a new commit in the connected repository.
To run tests, run the following command
ibmcloud ce application create --name moviesapp --build-source https://github.com/Sam-Joshua-S/Movie-Database-v2.0.git --image us.icr.io/${SN_ICR_NAMESPACE}/moviesapp --registry-secret icr-secret --env NLU_APIKEY=8yS0uFjVRsCvQ################ --env NLU_URL=https://api.au-syd.natural-language-understanding.watson.cloud.ibm.com/instances/#################### --env CLOUDANT_URL=https://apikey-v2-########################-60336fbafb1a-bluemix.cloudantnosqldb.appdomain.cloud --env CLOUDANT_USERNAME=apikey-v2-1############################### --env CLOUDANT_PASSWORD=##############################
- The NLU service has a limit on the number of requests that can be made per month. Be sure to monitor usage to avoid going over this limit.
- The sentiment analysis provided by the NLU service is determined by the overall sentiment of the text, not the sentiment towards specific entities or concepts mentioned in the text.
Using the IBM Cloud NLU service and IBM Cloud pipeline, it is possible to quickly and easily analyze movie reviews to determine sentiment and identify key entities and concepts. This can provide valuable insights for movie studios and reviewers. With pipeline, the deployment process is automated and streamlined, making it easy to manage different environments, and rollback if necessary.