From 21871f4e063774055d316c3e9d10ba3237f7e6b7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 14 Feb 2023 17:51:30 +0100 Subject: [PATCH] Fix docstring --- unimore_bda_6/analysis/nltk_sentiment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unimore_bda_6/analysis/nltk_sentiment.py b/unimore_bda_6/analysis/nltk_sentiment.py index 862b72c..806c23e 100644 --- a/unimore_bda_6/analysis/nltk_sentiment.py +++ b/unimore_bda_6/analysis/nltk_sentiment.py @@ -50,7 +50,7 @@ class NLTKSentimentAnalyzer(BaseSentimentAnalyzer): def __extract_features(self, review: TextReview) -> tuple[Features, str]: """ - Convert a (TokenBag, Category) tuple to a (Features, Category) tuple. + Convert a TextReview to a (Features, str) tuple. Does not use `SentimentAnalyzer.apply_features` due to unexpected behaviour when using iterators. """