AI Prompt Engineering: Difference between revisions
Jump to navigation
Jump to search
→Story
(→Story) |
|||
| Line 176: | Line 176: | ||
將文章轉成步驟式教學 | 將文章轉成步驟式教學 | ||
* Turn the following article into a wikihow article: {{kbd | key=接上文章}} | * Turn the following article into a wikihow article: {{kbd | key=接上文章}} | ||
== Sentiment analysis == | |||
判斷文章的正負情緒分析 | |||
Prompt: | |||
<pre> | |||
I will provide you with the article, and your task will be to analyze (1) the sentiment - whether it is positive or negative, and (2) the confidence score. The confidence score is a number between O and 1 that represents the likelihood that the output is correct and will | |||
satisfy my question. And put your response into a JSON with keys "sentiment", "score" and "explanation". The | |||
article: | |||
喬巴說:就算你誇獎我,我也不會高興的 | |||
</pre> | |||
Example output | |||
<pre> | |||
{ | |||
"sentiment": "negative", | |||
"score": 0.95, | |||
"explanation": "The article is in Chinese, but the use of the words '不會高興的' (won't be happy) indicates a negative sentiment. The high confidence score of 0.95 is due to the clear negative connotation of the statement." | |||
} | |||
</pre> | |||
== Story == | == Story == | ||