Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit ed4cba4

Browse files
committed
make method public
1 parent af22662 commit ed4cba4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/sentiment/post_classification.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ def classify!(target)
6565
store_classification(target, results)
6666
end
6767

68+
def classifiers
69+
DiscourseAi::Sentiment::SentimentSiteSettingJsonSchema.values
70+
end
71+
6872
private
6973

7074
def prepare_text(target)
@@ -78,10 +82,6 @@ def prepare_text(target)
7882
Tokenizer::BertTokenizer.truncate(content, 512)
7983
end
8084

81-
def classifiers
82-
DiscourseAi::Sentiment::SentimentSiteSettingJsonSchema.values
83-
end
84-
8585
def request_with(content, config, base_url = Discourse.base_url)
8686
DiscourseAi::Inference::HuggingFaceTextEmbeddings.classify(content, config, base_url)
8787
end

0 commit comments

Comments
 (0)