TypeChat/python/examples/sentiment at main · microsoft/TypeChat

Skip to content

Navigation Menu

Sign in

Appearance settings

Latest commit

Sentiment

The Sentiment example shows how to match user intent to a set of nouns, in this case categorizing user sentiment of the input as negative, neutral, or positive with the SentimentResponse type.

Try Sentiment

To run the Sentiment example, follow the instructions in the examples README.

Usage

Example prompts can be found in input.txt.

For example, given the following input statement:

Input:

Output:

The sentiment is positive