3 ms·
The Positive Hacker News RSS Feed
- walterbell 2y agoWhere would one modify this code to filter different sentiments? Via this post, I learned about the HackerNews Recap podcast: https://podcasts.apple.com/us/podcast/hacker-news-recap/id1681571416 https://podcasts.apple.com/us/podcast/hacker-news-recap/id16...
- bertman 2y ago>Where would one modify this code to filter different sentiments? Right here: https://github.com/garritfra/positive_hackernews/blob/main/main.py#L47 https://github.com/garritfra/positive_hackernews/blob/main/m... This project uses the sentiment analyzer provided by the NLTK toolkit [0]. The `SentimentIntensityAnalyzer` class assigns polarity scores to its text input, where a score >=0 denotes a "positive valence". [0]:https://www.nltk.org/api/nltk.sentiment.SentimentIntensityAnalyzer.html?highlight=sentimentintensityanalyzer#nltk-sentiment-sentimentintensityanalyzer https://www.nltk.org/api/nltk.sentiment.SentimentIntensityAn...