최종 수정: 에
AI_SENTIMENT
설명
텍스트의 감정을 분석하는 데 사용됩니다.
구문
AI_SENTIMENT([<resource_name>], <text>)
매개변수
| 매개변수 | 설명 |
|---|---|
<resource_name> | 지정한 리소스 이름 |
<text> | 감정을 분석할 텍스트 |
반환 값
감정 분석 결과를 반환합니다. 가능한 값은 다음과 같습니다:
- positive
- negative
- neutral
- mixed
입력값 중 하나라도 NULL이면 NULL을 반환합니다.
결과는 대규모 언어 모델이 생성하므로 출력이 달라질 수 있습니다.
예제
SET default_ai_resource = 'resource_name';
SELECT AI_SENTIMENT('Apache Doris is a great DB system.') AS Result;
+----------+
| Result |
+----------+
| positive |
+----------+
SELECT AI_SENTIMENT('resource_name', 'I hate sunny days.') AS Result;
+----------+
| Result |
+----------+
| negative |
+----------+