Add support for Watson Sentiment Analysis in Comment Moderation

Đang mở
#920 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
ai, backend, content

Hướng nghiên cứu

Bắt đầu bằng cách kiểm tra tích hợp OpenAI hiện có và luồng kiểm duyệt bình luận Watson hiện tại để xác định các thiết lập nhà cung cấp, UI kiểm duyệt và các điểm đầu vào ghi log. Xác nhận cách điểm cảm xúc và các kết quả dưới ngưỡng cần được truyền qua engine hiện có; được xem là hoàn tất khi toggle, ngưỡng, các lựa chọn hành động, liên kết đến tài liệu IBM và kết quả kiểm duyệt được ghi log hoạt động với Watson mà không ảnh hưởng đến các nhà cung cấp khác.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Is your enhancement related to a problem? Please describe.

When IBM Watson is selected as the comment moderation provider, enable support for Watson’s Sentiment API. This evaluates comments with a sentiment score between -1.0 (very negative) and +1.0 (very positive), and flags them accordingly.

New settings should be added:

  • A toggle to enable sentiment scoring
  • A threshold field to configure the minimum score required (e.g., 0.5)
  • A dropdown to determine what happens when the score is below the threshold:
    • Reject comment
    • Hold for moderation (default)
    • Allow with warning/logging

The UI should explain the scoring scale and include a link to IBM's documentation. The feature should integrate into the existing comment moderation engine and logging, respecting the selected provider.

Designs

This enhancement allows Watson users to moderate comments using sentiment analysis, supporting brands or communities that wish to promote constructive, positive discussion. It also provides parity with the OpenAI moderation provider while offering a different flavor of moderation logic.

Describe alternatives you've considered
Code of Conduct
  • I agree to follow this project's Code of Conduct
Ngôn ngữ chính
PHP
Star
714
Fork
68
Merge trung bình
4 giờ 32 phút
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của 10up/classifai

Tất cả issue của 10up/classifai

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.