Slide 5
Slide 5 text
➀ プロンプトでJSON形式を指定する
成功することもあるが、失敗もする。
次の[文章]の感情を判定してください。
判定結果には以下を含めてください。
● label : positive/negative
● score : 感情の強さ(0~10)
[文章]
この商品は最高でした。また買いたい。
出力結果は以下の JSON形式でお願いします。
{
“label” : “positive”,
“score” : 9
}
以下、判定結果です。
{
“label” : “positive”,
“score” : “9”
}
不要な文字列が含まれる
追加
{
“label” : “positive”,
“score” : 9
}
文字列で返ってくる