1
Fork 0
mirror of https://github.com/Steffo99/unimore-bda-6.git synced 2024-11-21 15:34:18 +00:00

Fix docstring

This commit is contained in:
Steffo 2023-02-14 17:51:30 +01:00
parent 58554c84e0
commit 21871f4e06
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -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.
"""