function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sam mendessam mendes 

how can i access Einstein language model in apex classes?

I am trying to access the einstein language model (which was trained from ui) through the apex classes. I want to modify the text before sending it to model for intent classification. How can I use that language model through the apex classes? please help!!!
VinayVinay (Salesforce Developers) 
Hi Sam,

Einstein Language contains two NLP services:

1. Einstein Intent.
2. Einstein Sentiment.

>> Einstein Intent — The Einstein Intent API categorizes unstructured text into user-defined labels to better understand what users are trying to accomplish.

>> Einstein Sentiment — The Einstein Sentiment API classifies text into positive, negative, and neutral classes to understand what the words people use can tell us about how they’re feeling.

Review below link for more information and to find code for Lightning component and Apex Class. 

https://medium.com/@sameer.khan_19727/sentiment-analysis-with-salesforce-einstein-94eb8716ae2c

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
sam mendessam mendes
Hi Vinay
Thanks for the answer and well written blog too, but that doesn't answer my question. My question is how can I access the einstein model trained in the UI through Apex classes?