You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# (Required if ENABLE_HATE_SPEECH_DETECTION == true) set this to your own hate-speech-detector-api instance (https://github.com/atrifat/hate-speech-detector-api)
# (Optional) set this to your own hate-speech-detector-api api_key if required
16
+
# (Optional) set this to your own hate-speech-detector-api api_key if required
15
17
HATE_SPEECH_DETECTOR_TOKEN=
16
18
# (Default: 350) Set to 0 if you don't want to truncate text, or set to any positive number to truncate the text characters
17
19
HATE_SPEECH_DETECTOR_TRUNCATE_LENGTH=350
20
+
18
21
ENABLE_SENTIMENT_ANALYSIS=true
19
22
# (Required if ENABLE_SENTIMENT_ANALYSIS == true) set this to your own sentiment-analysis-api instance (https://github.com/atrifat/sentiment-analysis-api)
# (Optional) set this to your own sentiment-analysis-api api_key if required
24
+
# (Optional) set this to your own sentiment-analysis-api api_key if required
22
25
SENTIMENT_ANALYSIS_TOKEN=
23
26
# (Default: 350) Set to 0 if you don't want to truncate text, or set to any positive number to truncate the text characters
24
27
SENTIMENT_ANALYSIS_TRUNCATE_LENGTH=350
28
+
29
+
ENABLE_TOPIC_CLASSIFICATION=true
30
+
# (Required if ENABLE_TOPIC_CLASSIFICATION == true) set this to your own topic-classification-api instance (https://github.com/atrifat/topic-classification-api)
# (Optional) Set true to enable forwarding of request headers to upstream server, useful if relays behind reverse proxy
42
54
ENABLE_FORWARD_REQ_HEADERS=false
55
+
43
56
# (Optional. Default: sfw. Options: all, sfw, partialsfw, and nsfw) Filter hate speech (toxic comment).
44
57
DEFAULT_FILTER_CONTENT_MODE=sfw
45
58
# (Optional. Default: 75, Options: 0-100) Default minimum probability/confidence score to determine the classification of nsfw content
46
59
DEFAULT_FILTER_NSFW_CONFIDENCE=75
60
+
47
61
# (Optional. Default: all. Multiple Options: all, or other language code)
48
62
DEFAULT_FILTER_LANGUAGE_MODE=all
49
63
# (Optional. Default: 15. Options: 0-100) Default minimum probability/confidence score to determine the classification of language
50
64
DEFAULT_FILTER_LANGUAGE_CONFIDENCE=15
65
+
51
66
# (Optional. Default: no. Options: all, no, yes) Filter hate speech (toxic comment). "all" will disable filtering, "no" will filter out any detected hate speech content, "yes" will select only detected hate speech content
52
67
DEFAULT_FILTER_HATE_SPEECH_TOXIC_MODE=no
53
68
# (Optional. Default: 75. Options: 0-100) Default minimum probability/confidence score to determine the classification of hate speech (toxic comment)
54
69
DEFAULT_FILTER_HATE_SPEECH_TOXIC_CONFIDENCE=75
55
70
# (Optional. Default: max. Options: max, sum) Methods to determine toxic content by using max value from all toxic classes score or sum value of all toxic classes score
# (Optional. Default: all, Multiple Options: all,negative,neutral,positive) Multiple options separated by comma (eg: neutral,positive => filter to get both neutral and positive sentiment)
58
74
DEFAULT_FILTER_SENTIMENT_MODE=all
59
75
# (Optional. Default: 35, Options: 0-100) Default minimum probability/confidence score in percentage to determine the classification of sentiment
60
76
DEFAULT_FILTER_SENTIMENT_CONFIDENCE=35
77
+
78
+
# (Default: all, Multiple Options: list of valid topic in atrifat/nostr-filter-relay Github) Multiple options separated by comma (eg: life,music,sport,science_and_technology => filter to get life (short version of: diaries_and_life), music, sport, science_and_technology)
79
+
DEFAULT_FILTER_TOPIC_MODE=all
80
+
# (Default: 35, Options: 0-100) Default minimum probability/confidence score in percentage to determine the classification of topic
81
+
DEFAULT_FILTER_TOPIC_CONFIDENCE=35
82
+
61
83
# (Optional. Default: all. Options: all, nostr, activitypub) Filter user type. "nostr" for native nostr users and "activitypub" for activitypub users coming from bridge
0 commit comments