AI Prompt Engineering: Difference between revisions

Jump to navigation Jump to search
m
Line 547: Line 547:


備註:不知道如何將 PDF 去識別化,我使用 pdftotext 轉成文字檔,再手動去識別化。
備註:不知道如何將 PDF 去識別化,我使用 pdftotext 轉成文字檔,再手動去識別化。
== 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>


== System prompt ==
== System prompt ==
Anonymous user

Navigation menu