# GCP sentiment enrichment
URL: https://docs.datarobot.com/en/docs/api/dev-learning/accelerators/data-enrichment-prep/gcp-enrich.html

> Demo the usage of the Google Cloud Natural Language API for sentiment analysis to enrich a customer churn dataset.

# GCP sentiment enrichment

[Access this AI accelerator on GitHub](https://github.com/datarobot-community/ai-accelerators/blob/main/advanced_ml_and_api_approaches/data_enrichment_gcp_nlp_api/GCP_enrich_sentiment.ipynb)

Text data is a valuable source of information for machine learning models, as it allows algorithms to extract insights from large volumes of unstructured text data. Text data can be obtained from various sources, such as social media, news articles, and customer feedback. The benefits of using text data in ML models include its ability to provide valuable insights, such as sentiment analysis, and topic modeling, which can help organizations make informed decisions. However, using text data in ML models can be challenging due to several factors, such as the complexity of natural language, the presence of bias and noise, and the lack of standardization in text data. Additionally, text data requires significant preprocessing and feature engineering to ensure that it can be effectively used in ML models.

One common application of text mining is sentiment analysis, where a numerical value is assigned representing whether the text carries a positive, neutral, or negative sentiment. While DataRobot can help efficiently build such models, the training requires a large, accurately labeled corpora that have been accurately labeled, making it a challenging task for users lacking such training dataset.

In this accelerator, demo the usage of the Google Cloud Natural Language API for sentiment analysis to enrich a customer churn dataset. The sentiment scores from the Google API help improve the model performance in predicting the likelihood of churn for each customer, without requiring the user to train their own sentiment models.

---
