{
  "id": "task_libraries:sentiment-analysis/python",
  "path": "/exapedia/python-sentiment-analysis-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python sentiment analysis libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python sentiment analysis libraries score text as positive, negative, or neutral. A lexicon-based scorer applies a fixed dictionary and rules rather than a trained neural model. These libraries let support tools, social media monitors, and AI agents measure how people feel about a product."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python sentiment analysis libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#transformers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F111"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F118"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nltk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#textblob",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#vader",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#stanza",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F185"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#polyglot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flair",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F216"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pysentimiento",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F233"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#transformers",
          "label": [
            {
              "t": "text",
              "text": "Transformers"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F112"
        },
        {
          "t": "text",
          "text": ", a count that covers every model task in the library."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Non-English ready sentiment",
            "Separate subjectivity score"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#transformers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F111"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nltk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#textblob",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#vader",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#stanza",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F185"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#polyglot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flair",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F216"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pysentimiento",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F233"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "transformers",
          "name": [
            {
              "t": "fact",
              "fact": "F111"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/huggingface/transformers"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/transformers"
            },
            {
              "label": "Docs",
              "href": "https://huggingface.co/docs/transformers/en/tasks/sequence_classification"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F118"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://huggingface.co/docs/transformers/en/tasks/sequence_classification",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F111"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F126"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/guia-matthieu/clawfu-skills",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get_sentiment_transformer(text: str) -> dict:\n    \"\"\"Get sentiment using transformers (if available).\"\"\"\n    try:\n        from transformers import pipeline\n        classifier = pipeline(\"sentiment-analysis\", model=\"distilbert-base-uncased-finetuned-sst-2-english\")\n        result = classifier(text[:512])[0]  # Limit text length\n\n        score = result['score'] if result['label'] == 'POSITIVE' else 1 - result['score']\n\n        return {\n            'score': score,\n            'sentiment': 'positive' if score > 0.6 else ('negative' if score < 0.4 else 'neutral'),\n            'label': get_label(score),\n            'model': 'distilbert'\n        }\n    except ImportError:\n        return get_sentiment_vader(text)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/guia-matthieu/clawfu-skills/blob/4108f5c010ccaa8b5707fa05ca1d888ae167e548/skills/analytics/sentiment-analyzer/scripts/main.py#L64-L80",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F125"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20transformers&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F111"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from transformers import pipeline\nclassifier = pipeline(model=\"distilbert/distilbert-base-uncased-finetuned-sst-2-english\")\nclassifier(\"This movie is disgustingly good !\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/huggingface/transformers/blob/v5.23.0/src/transformers/pipelines/text_classification.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "text_classification.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F116"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "nltk",
          "name": [
            {
              "t": "fact",
              "fact": "F128"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/nltk/nltk"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/nltk"
            },
            {
              "label": "Docs",
              "href": "https://www.nltk.org/howto/sentiment.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F135"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.nltk.org/howto/sentiment.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/sloria/TextBlob",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def analyze(self, text):\n    \"\"\"Return the sentiment as a named tuple of the form:\n    ``Sentiment(classification, p_pos, p_neg)``\n    \"\"\"\n    # Lazily train the classifier\n    super().analyze(text)\n    tokens = word_tokenize(text, include_punc=False)\n    filtered = (t.lower() for t in tokens if len(t) >= 3)\n    feats = self.feature_extractor(filtered)\n    prob_dist = self._classifier.prob_classify(feats)\n    return self.RETURN_TYPE(\n        classification=prob_dist.max(),\n        p_pos=prob_dist.prob(\"pos\"),\n        p_neg=prob_dist.prob(\"neg\"),\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/sloria/TextBlob/blob/629e60e0b1cfc5fa6d7df4bed9ccc7b98ac8917d/src/textblob/en/sentiments.py#L94-L108",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=nltk%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import nltk\nfrom nltk.sentiment.vader import SentimentIntensityAnalyzer\nnltk.download(\"vader_lexicon\")\nsid = SentimentIntensityAnalyzer()\nsid.polarity_scores(\"VADER is smart, handsome, and funny.\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.nltk.org/howto/sentiment.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "sentiment.doctest"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "textblob",
          "name": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sloria/TextBlob"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/textblob"
            },
            {
              "label": "Docs",
              "href": "https://textblob.readthedocs.io/en/stable/quickstart.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F40"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://textblob.readthedocs.io/en/stable/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F48"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Roibal/Cryptocurrency-Trading-Bots-Python-Beginner-Advance",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get_tweet_sentiment(self, tweet):\n    '''\n    Utility function to classify sentiment of passed tweet\n    using textblob's sentiment method\n    '''\n    # create TextBlob object of passed tweet text\n    analysis = TextBlob(self.clean_tweet(tweet))\n    # set sentiment\n    if analysis.sentiment.polarity > 0:\n        return 'positive'\n    elif analysis.sentiment.polarity == 0:\n        return 'neutral'\n    else:\n        return 'negative'\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Roibal/Cryptocurrency-Trading-Bots-Python-Beginner-Advance/blob/6cd9f639ac7f9d914d556738ca3aeeef53618146/Crypto-Trading-Bots/Crypto_Sentiment_Analysis_SocialMedia_Bot.py#L79-L92",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20textblob&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from textblob import TextBlob\ntestimonial = TextBlob(\"Textblob is amazingly simple to use. What great fun!\")\ntestimonial.sentiment\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://textblob.readthedocs.io/en/stable/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "classifiers.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F152"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "vader",
          "name": [
            {
              "t": "fact",
              "fact": "F164"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cjhutto/vaderSentiment"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/vaderSentiment"
            },
            {
              "label": "Docs",
              "href": "https://github.com/cjhutto/vaderSentiment/blob/master/README.rst"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F63"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/cjhutto/vaderSentiment/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F164"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/shirosaidev/stocksight",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def sentiment_analysis(text):\n    \"\"\"Determine if sentiment is positive, negative, or neutral\n    algorithm to figure out if sentiment is positive, negative or neutral\n    uses sentiment polarity from TextBlob, VADER Sentiment and\n    sentiment from text-processing URL\n    could be made better :)\n    \"\"\"\n\n    # pass text into sentiment url\n    if args.websentiment:\n        ret = get_sentiment_from_url(text, sentimentURL)\n        if ret is None:\n            sentiment_url = None\n        else:\n            sentiment_url, neg_url, pos_url, neu_url = ret\n    else:\n        sentiment_url = None\n\n    # pass text into TextBlob\n    text_tb = TextBlob(text)\n\n    # pass text into VADER Sentiment\n    analyzer = SentimentIntensityAnalyzer()\n    text_vs = analyzer.polarity_scores(text)\n\n    # determine sentiment from our sources\n    if sentiment_url is None:\n        if text_tb.sentiment.polarity < 0 and text_vs['compound'] <= -0.05:\n            sentiment = \"negative\"\n        elif text_tb.sentiment.polarity > 0 and text_vs['compound'] >= 0.05:\n            sentiment = \"positive\"\n        else:\n            sentiment = \"neutral\"\n    else:\n        if text_tb.sentiment.polarity < 0 and text_vs['compound'] <= -0.05 and sentiment_url == \"negative\":\n            sentiment = \"negative\"\n        elif text_tb.sentiment.polarity > 0 and text_vs['compound'] >= 0.05 and sentiment_url == \"positive\":\n            sentiment = \"positive\"\n        else:\n            sentiment = \"neutral\"\n\n    # calculate average polarity from TextBlob and VADER\n    polarity = (text_tb.sentiment.polarity + text_vs['compound']) / 2\n\n    # output sentiment polarity\n    print(\"************\")\n    print(\"Sentiment Polarity: \" + str(round(polarity, 3)))\n\n    # output sentiment subjectivity (TextBlob)\n    print(\"Sentiment Subjectivity: \" + str(round(text_tb.sentiment.subjectivity, 3)))\n\n    # output sentiment\n    print(\"Sentiment (url): \" + str(sentiment_url))\n    print(\"Sentiment (algorithm): \" + str(sentiment))\n    print(\"Overall sentiment (textblob): \", text_tb.sentiment) \n    print(\"Overall sentiment (vader): \", text_vs) \n    print(\"sentence was rated as \", round(text_vs['neg']*100, 3), \"% Negative\") \n    print(\"sentence was rated as \", round(text_vs['neu']*100, 3), \"% Neutral\") \n    print(\"sentence was rated as \", round(text_vs['pos']*100, 3), \"% Positive\") \n    print(\"************\")\n\n    return polarity, text_tb.sentiment.subjectivity, sentiment\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/shirosaidev/stocksight/blob/580d35876f2d9c0cb905b723c664f053abdd567c/sentiment.py#L467-L528",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20vaderSentiment&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F164"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/guia-matthieu/clawfu-skills",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get_sentiment_vader(text: str) -> dict:\n    \"\"\"Get sentiment using VADER (if available).\"\"\"\n    try:\n        from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer\n        analyzer = SentimentIntensityAnalyzer()\n        scores = analyzer.polarity_scores(text)\n        compound = (scores['compound'] + 1) / 2  # Normalize to 0-1\n\n        return {\n            'score': compound,\n            'sentiment': 'positive' if compound > 0.6 else ('negative' if compound < 0.4 else 'neutral'),\n            'label': get_label(compound),\n            'details': scores\n        }\n    except ImportError:\n        return get_sentiment_simple(text)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/guia-matthieu/clawfu-skills/blob/4108f5c010ccaa8b5707fa05ca1d888ae167e548/skills/analytics/sentiment-analyzer/scripts/main.py#L46-L61",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20vaderSentiment&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F164"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer\nanalyzer = SentimentIntensityAnalyzer()\nanalyzer.polarity_scores(\"VADER is smart, handsome, and funny.\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/cjhutto/vaderSentiment/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F169"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "stanza",
          "name": [
            {
              "t": "fact",
              "fact": "F185"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/stanfordnlp/stanza"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/stanza"
            },
            {
              "label": "Docs",
              "href": "https://stanfordnlp.github.io/stanza/sentiment.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://stanfordnlp.github.io/stanza/sentiment.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F185"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import stanza\nnlp = stanza.Pipeline(lang='en', processors='tokenize,sentiment')\ndoc = nlp('I hate that they banned Mox Opal')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://stanfordnlp.github.io/stanza/sentiment.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "sentiment.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=stanza%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F185"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F190"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "polyglot",
          "name": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/aboSamoor/polyglot"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/polyglot"
            },
            {
              "label": "Docs",
              "href": "https://polyglot.readthedocs.io/en/latest/Sentiment.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F207"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://polyglot.readthedocs.io/en/latest/Sentiment.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F200"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from polyglot.text import Text\ntext = Text(\"The movie was really good.\")\ntext.words[4].polarity\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://polyglot.readthedocs.io/en/latest/Sentiment.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "Sentiment.ipynb"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=polyglot%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F200"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F205"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "flair",
          "name": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/flairNLP/flair"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/flair"
            },
            {
              "label": "Docs",
              "href": "https://flairnlp.github.io/docs/tutorial-training/how-to-train-text-classifier"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F83"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://flairnlp.github.io/docs/tutorial-training/how-to-train-text-classifier",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F216"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F84"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F85"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F86"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/prrao87/fine-grained-sentiment",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def score(self, text: str) -> int:\n    from flair.data import Sentence\n    doc = Sentence(text)\n    self.model.predict(doc)\n    pred = int(doc.labels[0].value)\n    return pred\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/prrao87/fine-grained-sentiment/blob/a4401669eecbe9dda494faf36afe1e6a0b065a38/classifiers.py#L191-L196",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F230"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20flair&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F216"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from flair.data import Sentence\nfrom flair.nn import Classifier\n\n# make a sentence\nsentence = Sentence('I love Berlin .')\n\n# load the NER tagger\ntagger = Classifier.load('sentiment')\n\n# run NER over sentence\ntagger.predict(sentence)\n\n# print the sentence with all annotations\nprint(sentence)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/flairNLP/flair/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F221"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pysentimiento",
          "name": [
            {
              "t": "fact",
              "fact": "F233"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pysentimiento/pysentimiento"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pysentimiento"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F240"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pysentimiento/pysentimiento",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F233"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pysentimiento import create_analyzer\nanalyzer = create_analyzer(task=\"sentiment\", lang=\"es\")\nanalyzer.predict(\"Qué gran jugador es Messi\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/pysentimiento/pysentimiento/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pysentimiento%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F233"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F238"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python sentiment analysis library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#transformers",
          "label": [
            {
              "t": "text",
              "text": "Transformers"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits applications that run or fine-tune pretrained sentiment classifiers. "
        },
        {
          "t": "link",
          "href": "#vader",
          "label": [
            {
              "t": "text",
              "text": "VADER"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits social media text scored by a lexicon and rules. "
        },
        {
          "t": "link",
          "href": "#textblob",
          "label": [
            {
              "t": "text",
              "text": "TextBlob"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits code that needs separate polarity and subjectivity scores."
        }
      ]
    },
    {
      "q": "What is VADER sentiment analysis?",
      "a": [
        {
          "t": "link",
          "href": "#vader",
          "label": [
            {
              "t": "text",
              "text": "VADER"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a lexicon and rule-based sentiment analysis tool attuned to sentiments expressed in social media. It returns a composite score alongside its category scores."
        }
      ]
    },
    {
      "q": "TextBlob vs VADER: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#textblob",
          "label": [
            {
              "t": "text",
              "text": "TextBlob"
            }
          ]
        },
        {
          "t": "text",
          "text": " returns separate polarity and subjectivity scores and trains custom text classifiers. "
        },
        {
          "t": "link",
          "href": "#vader",
          "label": [
            {
              "t": "text",
              "text": "VADER"
            }
          ]
        },
        {
          "t": "text",
          "text": " scores informal social media text with a lexicon and rules."
        }
      ]
    },
    {
      "q": "What is Flair?",
      "a": [
        {
          "t": "link",
          "href": "#flair",
          "label": [
            {
              "t": "text",
              "text": "Flair"
            }
          ]
        },
        {
          "t": "text",
          "text": " loads sentiment models and trains text classifiers with configurable embeddings. Its standard sentiment model targets English with binary labels."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, transformers",
      "display": "Transformers",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, transformers",
      "display": "96.3M",
      "asOf": "2026-11-12"
    },
    "F3": {
      "label": "License, transformers",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, transformers",
      "display": "5.22.2, Nov 2026",
      "asOf": "2026-11-06"
    },
    "F5": {
      "label": "Package release date, transformers",
      "display": "Nov 2026",
      "asOf": "2026-11-06"
    },
    "F6": {
      "label": "Repository stars, transformers",
      "display": "168.9K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Sentiment scores, transformers",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Train classifiers, transformers",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Batch inference, transformers",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, transformers",
      "display": "pip install \"transformers[torch]\"",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, transformers",
      "display": "Runs pretrained sentiment classifiers and supports fine-tuning on labeled datasets.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, transformers",
      "display": "Fine-tunes for a specific classification task",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, transformers",
      "display": "Adapt a pretrained model using labeled examples from the target task.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, transformers",
      "display": "Batches sentiment inference",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, transformers",
      "display": "Pass lists, datasets, or generators to a pipeline with batching.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, transformers",
      "display": "Long inputs need length handling",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, transformers",
      "display": "Truncate or split inputs that exceed the model’s accepted sequence length.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, transformers",
      "display": "Large batches can exhaust memory",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, transformers",
      "display": "Reduce batch size when inference runs out of memory.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, transformers",
      "display": "from transformers import pipeline\nclassifier = pipeline(model=\"distilbert/distilbert-base-uncased-finetuned-sst-2-english\")\nclassifier(\"This movie is disgustingly good !\")\nclassifier(\"Director tried too much.\")\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, transformers",
      "display": "def model_fn(model_dir):\n    sentiment_analysis = pipeline(\n        \"sentiment-analysis\",\n        model=model_dir,\n        tokenizer=model_dir,\n        return_all_scores=True\n    )\n\n    return sentiment_analysis\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, transformers",
      "display": "inference.py · model_fn()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, transformers",
      "display": "aws-samples/amazon-sagemaker-local-mode",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, aws-samples/amazon-sagemaker-local-mode",
      "display": "263",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, aws-samples/amazon-sagemaker-local-mode",
      "display": "Apr 2025",
      "asOf": "2025-04-29"
    },
    "F26": {
      "label": "Project function, transformers",
      "display": "def get_grad(self, text_input):\n    \"\"\"Get gradient of loss with respect to input tokens.\n\n    Args:\n        text_input (str): input string\n    Returns:\n        Dict of ids, tokens, and gradient as numpy array.\n    \"\"\"\n    if isinstance(self.model, textattack.models.helpers.T5ForTextToText):\n        raise NotImplementedError(\n            \"`get_grads` for T5FotTextToText has not been implemented yet.\"\n        )\n\n    self.model.train()\n    embedding_layer = self.model.get_input_embeddings()\n    original_state = embedding_layer.weight.requires_grad\n    embedding_layer.weight.requires_grad = True\n\n    emb_grads = []\n\n    def grad_hook(module, grad_in, grad_out):\n        emb_grads.append(grad_out[0])\n\n    emb_hook = embedding_layer.register_backward_hook(grad_hook)\n\n    self.model.zero_grad()\n    model_device = next(self.model.parameters()).device\n    input_dict = self.tokenizer(\n        [text_input],\n        add_special_tokens=True,\n        return_tensors=\"pt\",\n        padding=\"max_length\",\n        truncation=True,\n    )\n    input_dict.to(model_device)\n    predictions = self.model(**input_dict).logits\n\n    try:\n        labels = predictions.argmax(dim=1)\n        loss = self.model(**input_dict, labels=labels)[0]\n    except TypeError:\n        raise TypeError(\n            f\"{type(self.model)} class does not take in `labels` to calculate loss. \"\n            \"One cause for this might be if you instantiatedyour model using `transformer.AutoModel` \"\n            \"(instead of `transformers.AutoModelForSequenceClassification`).\"\n        )\n\n    loss.backward()\n\n    # grad w.r.t to word embeddings\n    grad = emb_grads[0][0].cpu().numpy()\n\n    embedding_layer.weight.requires_grad = original_state\n    emb_hook.remove()\n    self.model.eval()\n\n    output = {\"ids\": input_dict[\"input_ids\"], \"gradient\": grad}\n\n    return output\n",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project function reference, transformers",
      "display": "huggingface_model_wrapper.py · get_grad()",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Project repository, transformers",
      "display": "QData/TextAttack",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Project stars, QData/TextAttack",
      "display": "3.5K",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Project push date, QData/TextAttack",
      "display": "Aug 2026",
      "asOf": "2026-08-15"
    },
    "F31": {
      "label": "Library name, textblob",
      "display": "TextBlob",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Monthly downloads, textblob",
      "display": "2.8M",
      "asOf": "2026-11-12"
    },
    "F33": {
      "label": "License, textblob",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Package release, textblob",
      "display": "0.20.1, Jul 2026",
      "asOf": "2026-07-18"
    },
    "F35": {
      "label": "Package release date, textblob",
      "display": "Jul 2026",
      "asOf": "2026-07-18"
    },
    "F36": {
      "label": "Repository stars, textblob",
      "display": "9.6K",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Sentiment scores, textblob",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Train classifiers, textblob",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "Install, textblob",
      "display": "pip install -U textblob && python -m textblob.download_corpora",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "What it does, textblob",
      "display": "Returns polarity and subjectivity scores and supports custom text classifiers.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, textblob",
      "display": "Separates polarity and subjectivity",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, textblob",
      "display": "Read sentiment direction and subjectivity as separate values.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths lead, textblob",
      "display": "Trains custom text classifiers",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "strengths, textblob",
      "display": "Train a classifier on custom labeled text examples.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, textblob",
      "display": "Analyzer choice changes returned values",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, textblob",
      "display": "NaiveBayesAnalyzer returns class probabilities instead of polarity and subjectivity.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations lead, textblob",
      "display": "Optional analyzer uses movie reviews",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "limitations, textblob",
      "display": "The built-in NaiveBayesAnalyzer is trained on a movie-review corpus.",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Quickstart, textblob",
      "display": "train = [\n(\"I love this sandwich.\", \"pos\"),\n(\"this is an amazing place!\", \"pos\"),\n(\"I feel very good about these beers.\", \"pos\"),\n(\"this is my best work.\", \"pos\"),\n(\"what an awesome view\", \"pos\"),\n(\"I do not like this restaurant\", \"neg\"),\n(\"I am tired of this stuff.\", \"neg\"),\n(\"I can't deal with this\", \"neg\"),\n(\"he is my sworn enemy!\", \"neg\"),\n(\"my boss is horrible.\", \"neg\"),\n]\ntest = [\n(\"the beer was good.\", \"pos\"),\n(\"I do not enjoy my job\", \"neg\"),\n(\"I ain't feeling dandy today.\", \"neg\"),\n(\"I feel amazing!\", \"pos\"),\n(\"Gary is a friend of mine.\", \"pos\"),\n(\"I can't believe I'm doing this.\", \"neg\"),\n]\n\nfrom textblob.classifiers import NaiveBayesClassifier\ncl = NaiveBayesClassifier(train)\n\ncl.classify(\"This is an amazing library!\")\n\nprob_dist = cl.prob_classify(\"This one's a doozy.\")\nprob_dist.max()\nround(prob_dist.prob(\"pos\"), 2)\nround(prob_dist.prob(\"neg\"), 2)\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function, textblob",
      "display": "def get_tweet_sentiment(self, tweet):\n    '''\n    Utility function to classify sentiment of passed tweet\n    using textblob's sentiment method\n    '''\n    # create TextBlob object of passed tweet text\n    analysis = TextBlob(self.clean_tweet(tweet))\n    # set sentiment\n    if analysis.sentiment.polarity > 0:\n        return 'positive'\n    elif analysis.sentiment.polarity == 0:\n        return 'neutral'\n    else:\n        return 'negative'\n",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project function reference, textblob",
      "display": "Crypto_Sentiment_Analysis_SocialMedia_Bot.py · get_tweet_sentiment()",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project repository, textblob",
      "display": "Roibal/Cryptocurrency-Trading-Bots-Python-Beginner-Advance",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project stars, Roibal/Cryptocurrency-Trading-Bots-Python-Beginner-Advance",
      "display": "1.4K",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Project push date, Roibal/Cryptocurrency-Trading-Bots-Python-Beginner-Advance",
      "display": "Jun 2023",
      "asOf": "2023-06-26"
    },
    "F55": {
      "label": "Library name, vaderSentiment",
      "display": "VADER",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Monthly downloads, vaderSentiment",
      "display": "900.0K",
      "asOf": "2026-11-12"
    },
    "F57": {
      "label": "License, vaderSentiment",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Package release, vaderSentiment",
      "display": "3.3.2, May 2020",
      "asOf": "2020-05-22"
    },
    "F59": {
      "label": "Package release date, vaderSentiment",
      "display": "May 2020",
      "asOf": "2020-05-22"
    },
    "F60": {
      "label": "Repository stars, vaderSentiment",
      "display": "5.1K",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Sentiment scores, vaderSentiment",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Install, vaderSentiment",
      "display": "pip install vaderSentiment",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "What it does, vaderSentiment",
      "display": "Scores sentiment with a lexicon and rules designed for social-media language.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, vaderSentiment",
      "display": "Handles informal text signals",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, vaderSentiment",
      "display": "Rules account for punctuation, emphasis, negation, and contrastive conjunctions.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, vaderSentiment",
      "display": "Returns a composite sentiment score",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, vaderSentiment",
      "display": "Use compound for the normalized score after lexical and rule adjustments.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, vaderSentiment",
      "display": "Non-English examples use translation",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, vaderSentiment",
      "display": "Translate non-English inputs separately; VADER does not provide its own translator.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, vaderSentiment",
      "display": "Compound and category scores differ",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, vaderSentiment",
      "display": "Use compound for overall sentiment; category ratios omit intensity rules.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Quickstart, vaderSentiment",
      "display": "from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer\n#note: depending on how you installed (e.g., using source code download versus pip install), you may need to import like this:\n#from vaderSentiment import SentimentIntensityAnalyzer\n\n# --- examples -------\nsentences = [\"VADER is smart, handsome, and funny.\",  # positive sentence example\n             \"VADER is smart, handsome, and funny!\",  # punctuation emphasis handled correctly (sentiment intensity adjusted)\n             \"VADER is very smart, handsome, and funny.\", # booster words handled correctly (sentiment intensity adjusted)\n             \"VADER is VERY SMART, handsome, and FUNNY.\",  # emphasis for ALLCAPS handled\n             \"VADER is VERY SMART, handsome, and FUNNY!!!\", # combination of signals - VADER appropriately adjusts intensity\n             \"VADER is VERY SMART, uber handsome, and FRIGGIN FUNNY!!!\", # booster words & punctuation make this close to ceiling for score\n             \"VADER is not smart, handsome, nor funny.\",  # negation sentence example\n             \"The book was good.\",  # positive sentence\n             \"At least it isn't a horrible book.\",  # negated negative sentence with contraction\n             \"The book was only kind of good.\", # qualified positive sentence is handled correctly (intensity adjusted)\n             \"The plot was good, but the characters are uncompelling and the dialog is not great.\", # mixed negation sentence\n             \"Today SUX!\",  # negative slang with capitalization emphasis\n             \"Today only kinda sux! But I'll get by, lol\", # mixed sentiment example with slang and constrastive conjunction \"but\"\n             \"Make sure you :) or :D today!\",  # emoticons handled\n             \"Catch utf-8 emoji such as such as 💘 and 💋 and 😁\",  # emojis handled\n             \"Not bad at all\"  # Capitalized negation\n             ]\n\nanalyzer = SentimentIntensityAnalyzer()\nfor sentence in sentences:\n    vs = analyzer.polarity_scores(sentence)\n    print(\"{:-<65} {}\".format(sentence, str(vs)))\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Library name, flair",
      "display": "Flair",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Monthly downloads, flair",
      "display": "58.3K",
      "asOf": "2026-11-12"
    },
    "F75": {
      "label": "License, flair",
      "display": "NOASSERTION",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Package release, flair",
      "display": "0.15.1, Feb 2025",
      "asOf": "2025-02-05"
    },
    "F77": {
      "label": "Package release date, flair",
      "display": "Feb 2025",
      "asOf": "2025-02-05"
    },
    "F78": {
      "label": "Repository stars, flair",
      "display": "14.4K",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Sentiment scores, flair",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Train classifiers, flair",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Batch inference, flair",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Install, flair",
      "display": "pip install flair",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "What it does, flair",
      "display": "Loads sentiment models and trains text classifiers with configurable embeddings.",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths lead, flair",
      "display": "Trains custom sentiment models",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths, flair",
      "display": "Train a text classifier with a custom corpus and label dictionary.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths lead, flair",
      "display": "Supports minibatched predictions",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths, flair",
      "display": "Pass data points to predict() and configure mini_batch_size.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "limitations lead, flair",
      "display": "Standard sentiment model targets English",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations, flair",
      "display": "The standard sentiment checkpoint classifies English movie and product reviews.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations lead, flair",
      "display": "Standard sentiment labels are binary",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations, flair",
      "display": "The standard sentiment models predict positive or negative, without a neutral label.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Quickstart, flair",
      "display": "from flair.data import Sentence\nfrom flair.nn import Classifier\n\n# make a sentence\nsentence = Sentence('I love Berlin .')\n\n# load the NER tagger\ntagger = Classifier.load('sentiment')\n\n# run NER over sentence\ntagger.predict(sentence)\n\n# print the sentence with all annotations\nprint(sentence)\n",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Project function, flair",
      "display": "def score(self, text: str) -> int:\n    from flair.data import Sentence\n    doc = Sentence(text)\n    self.model.predict(doc)\n    pred = int(doc.labels[0].value)\n    return pred\n",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Project function reference, flair",
      "display": "classifiers.py · score()",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project repository, flair",
      "display": "prrao87/fine-grained-sentiment",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project stars, prrao87/fine-grained-sentiment",
      "display": "171",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project push date, prrao87/fine-grained-sentiment",
      "display": "Apr 2026",
      "asOf": "2026-04-18"
    },
    "F98": {
      "label": "Developer need",
      "display": "Polarity and subjectivity",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose textblob",
      "display": "separate scores",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "polarity and subjectivity",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Informal language",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose vaderSentiment",
      "display": "lexicon and rules",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "informal language",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Batched classification",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose transformers",
      "display": "pipeline batching",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "batched classification",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Custom sentiment models",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose flair",
      "display": "train classifiers",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "custom sentiment models",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Page introduction",
      "display": "Python sentiment analysis libraries let text-processing developers classify the sentiment of text.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Library name, transformers",
      "display": "Transformers",
      "asOf": "2026-11-20"
    },
    "F112": {
      "label": "Monthly downloads, transformers",
      "display": "119.8M",
      "asOf": "2026-11-20"
    },
    "F113": {
      "label": "License, transformers",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F114": {
      "label": "Package release, transformers",
      "display": "5.23.0",
      "asOf": "2026-11-20"
    },
    "F115": {
      "label": "Package release date, transformers",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F116": {
      "label": "Install, transformers",
      "display": "pip install \"transformers[torch]\"",
      "asOf": "2026-11-20"
    },
    "F117": {
      "label": "Quickstart, transformers",
      "display": "from transformers import pipeline\nclassifier = pipeline(model=\"distilbert/distilbert-base-uncased-finetuned-sst-2-english\")\nclassifier(\"This movie is disgustingly good !\")\n",
      "asOf": "2026-11-20"
    },
    "F118": {
      "label": "Repository stars, transformers",
      "display": "168.9K",
      "asOf": "2026-11-20"
    },
    "F119": {
      "label": "Non-English ready sentiment, transformers",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F120": {
      "label": "Separate subjectivity score, transformers",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F121": {
      "label": "Sentiment language coverage, transformers",
      "display": "Model-dependent language coverage; e.g nlptown product-review sentiment covers English, Dutch, German, French, Spanish, and Italian",
      "asOf": "2026-11-20"
    },
    "F122": {
      "label": "Sentiment method and output, transformers",
      "display": "Fine-tuned transformer classification; labels and score semantics depend on selected model",
      "asOf": "2026-11-20"
    },
    "F123": {
      "label": "Observed package downloads, transformers",
      "display": "119775783",
      "asOf": "2026-11-20"
    },
    "F124": {
      "label": "Project function, transformers",
      "display": "def get_sentiment_transformer(text: str) -> dict:\n    \"\"\"Get sentiment using transformers (if available).\"\"\"\n    try:\n        from transformers import pipeline\n        classifier = pipeline(\"sentiment-analysis\", model=\"distilbert-base-uncased-finetuned-sst-2-english\")\n        result = classifier(text[:512])[0]  # Limit text length\n\n        score = result['score'] if result['label'] == 'POSITIVE' else 1 - result['score']\n\n        return {\n            'score': score,\n            'sentiment': 'positive' if score > 0.6 else ('negative' if score < 0.4 else 'neutral'),\n            'label': get_label(score),\n            'model': 'distilbert'\n        }\n    except ImportError:\n        return get_sentiment_vader(text)\n",
      "asOf": "2026-11-20"
    },
    "F125": {
      "label": "Project source file, transformers",
      "display": "skills/analytics/sentiment-analyzer/scripts/main.py",
      "asOf": "2026-11-20"
    },
    "F126": {
      "label": "Project full_name, transformers",
      "display": "guia-matthieu/clawfu-skills",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Project stargazers_count, transformers",
      "display": "150",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Library name, nltk",
      "display": "NLTK",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Monthly downloads, nltk",
      "display": "48.3M",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "License, nltk",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Package release, nltk",
      "display": "3.10.4",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Package release date, nltk",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Install, nltk",
      "display": "pip install nltk",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Quickstart, nltk",
      "display": "import nltk\nfrom nltk.sentiment.vader import SentimentIntensityAnalyzer\nnltk.download(\"vader_lexicon\")\nsid = SentimentIntensityAnalyzer()\nsid.polarity_scores(\"VADER is smart, handsome, and funny.\")\n",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Official description, nltk",
      "display": "Provides a natural language toolkit.",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Quickstart source file, nltk",
      "display": "nltk/test/sentiment.doctest",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Repository stars, nltk",
      "display": "14.8K",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Non-English ready sentiment, nltk",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Separate subjectivity score, nltk",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Sentiment language coverage, nltk",
      "display": "Bundled English VADER lexicon; custom training/translation is outside ready-model scope",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Sentiment method and output, nltk",
      "display": "English VADER lexicon and rules; separate general sentiment classifier-training utilities",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Observed package downloads, nltk",
      "display": "48268110",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project function, nltk",
      "display": "def analyze(self, text):\n    \"\"\"Return the sentiment as a named tuple of the form:\n    ``Sentiment(classification, p_pos, p_neg)``\n    \"\"\"\n    # Lazily train the classifier\n    super().analyze(text)\n    tokens = word_tokenize(text, include_punc=False)\n    filtered = (t.lower() for t in tokens if len(t) >= 3)\n    feats = self.feature_extractor(filtered)\n    prob_dist = self._classifier.prob_classify(feats)\n    return self.RETURN_TYPE(\n        classification=prob_dist.max(),\n        p_pos=prob_dist.prob(\"pos\"),\n        p_neg=prob_dist.prob(\"neg\"),\n    )\n",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project source file, nltk",
      "display": "src/textblob/en/sentiments.py",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project full_name, nltk",
      "display": "sloria/TextBlob",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project stargazers_count, nltk",
      "display": "9.6K",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Library name, textblob",
      "display": "TextBlob",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Monthly downloads, textblob",
      "display": "3.2M",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "License, textblob",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release, textblob",
      "display": "0.20.1",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release date, textblob",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Install, textblob",
      "display": "pip install -U textblob",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Quickstart, textblob",
      "display": "from textblob import TextBlob\ntestimonial = TextBlob(\"Textblob is amazingly simple to use. What great fun!\")\ntestimonial.sentiment\n",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Repository stars, textblob",
      "display": "9.6K",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Non-English ready sentiment, textblob",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Separate subjectivity score, textblob",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Sentiment language coverage, textblob",
      "display": "Default English PatternAnalyzer; custom external analyzers are not native ready models",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Sentiment method and output, textblob",
      "display": "Default PatternAnalyzer polarity/subjectivity; optional trained NaiveBayesAnalyzer differs",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Observed package downloads, textblob",
      "display": "3198718",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project function, textblob",
      "display": "def get_tweet_sentiment(self, tweet):\n    '''\n    Utility function to classify sentiment of passed tweet\n    using textblob's sentiment method\n    '''\n    # create TextBlob object of passed tweet text\n    analysis = TextBlob(self.clean_tweet(tweet))\n    # set sentiment\n    if analysis.sentiment.polarity > 0:\n        return 'positive'\n    elif analysis.sentiment.polarity == 0:\n        return 'neutral'\n    else:\n        return 'negative'\n",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project source file, textblob",
      "display": "Crypto-Trading-Bots/Crypto_Sentiment_Analysis_SocialMedia_Bot.py",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project full_name, textblob",
      "display": "Roibal/Cryptocurrency-Trading-Bots-Python-Beginner-Advance",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project stargazers_count, textblob",
      "display": "1.4K",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Library name, vaderSentiment",
      "display": "VADER",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Monthly downloads, vaderSentiment",
      "display": "1.2M",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "License, vaderSentiment",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Package release, vaderSentiment",
      "display": "3.3.2",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Package release date, vaderSentiment",
      "display": "May 2020",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Install, vaderSentiment",
      "display": "pip install vaderSentiment",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Quickstart, vaderSentiment",
      "display": "from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer\nanalyzer = SentimentIntensityAnalyzer()\nanalyzer.polarity_scores(\"VADER is smart, handsome, and funny.\")\n",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Repository stars, vaderSentiment",
      "display": "5.1K",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Non-English ready sentiment, vaderSentiment",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Separate subjectivity score, vaderSentiment",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Sentiment language coverage, vaderSentiment",
      "display": "English lexicon/rules; README multilingual demonstration uses external translation",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Sentiment method and output, vaderSentiment",
      "display": "Lexicon/rule model aimed at social-media sentiment, including punctuation and emoji cues",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Observed package downloads, vaderSentiment",
      "display": "1223198",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project function, vaderSentiment",
      "display": "def sentiment_analysis(text):\n    \"\"\"Determine if sentiment is positive, negative, or neutral\n    algorithm to figure out if sentiment is positive, negative or neutral\n    uses sentiment polarity from TextBlob, VADER Sentiment and\n    sentiment from text-processing URL\n    could be made better :)\n    \"\"\"\n\n    # pass text into sentiment url\n    if args.websentiment:\n        ret = get_sentiment_from_url(text, sentimentURL)\n        if ret is None:\n            sentiment_url = None\n        else:\n            sentiment_url, neg_url, pos_url, neu_url = ret\n    else:\n        sentiment_url = None\n\n    # pass text into TextBlob\n    text_tb = TextBlob(text)\n\n    # pass text into VADER Sentiment\n    analyzer = SentimentIntensityAnalyzer()\n    text_vs = analyzer.polarity_scores(text)\n\n    # determine sentiment from our sources\n    if sentiment_url is None:\n        if text_tb.sentiment.polarity < 0 and text_vs['compound'] <= -0.05:\n            sentiment = \"negative\"\n        elif text_tb.sentiment.polarity > 0 and text_vs['compound'] >= 0.05:\n            sentiment = \"positive\"\n        else:\n            sentiment = \"neutral\"\n    else:\n        if text_tb.sentiment.polarity < 0 and text_vs['compound'] <= -0.05 and sentiment_url == \"negative\":\n            sentiment = \"negative\"\n        elif text_tb.sentiment.polarity > 0 and text_vs['compound'] >= 0.05 and sentiment_url == \"positive\":\n            sentiment = \"positive\"\n        else:\n            sentiment = \"neutral\"\n\n    # calculate average polarity from TextBlob and VADER\n    polarity = (text_tb.sentiment.polarity + text_vs['compound']) / 2\n\n    # output sentiment polarity\n    print(\"************\")\n    print(\"Sentiment Polarity: \" + str(round(polarity, 3)))\n\n    # output sentiment subjectivity (TextBlob)\n    print(\"Sentiment Subjectivity: \" + str(round(text_tb.sentiment.subjectivity, 3)))\n\n    # output sentiment\n    print(\"Sentiment (url): \" + str(sentiment_url))\n    print(\"Sentiment (algorithm): \" + str(sentiment))\n    print(\"Overall sentiment (textblob): \", text_tb.sentiment) \n    print(\"Overall sentiment (vader): \", text_vs) \n    print(\"sentence was rated as \", round(text_vs['neg']*100, 3), \"% Negative\") \n    print(\"sentence was rated as \", round(text_vs['neu']*100, 3), \"% Neutral\") \n    print(\"sentence was rated as \", round(text_vs['pos']*100, 3), \"% Positive\") \n    print(\"************\")\n\n    return polarity, text_tb.sentiment.subjectivity, sentiment\n",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project source file, vaderSentiment",
      "display": "sentiment.py",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project full_name, vaderSentiment",
      "display": "shirosaidev/stocksight",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project stargazers_count, vaderSentiment",
      "display": "2.6K",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Project function, vaderSentiment",
      "display": "def get_sentiment_vader(text: str) -> dict:\n    \"\"\"Get sentiment using VADER (if available).\"\"\"\n    try:\n        from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer\n        analyzer = SentimentIntensityAnalyzer()\n        scores = analyzer.polarity_scores(text)\n        compound = (scores['compound'] + 1) / 2  # Normalize to 0-1\n\n        return {\n            'score': compound,\n            'sentiment': 'positive' if compound > 0.6 else ('negative' if compound < 0.4 else 'neutral'),\n            'label': get_label(compound),\n            'details': scores\n        }\n    except ImportError:\n        return get_sentiment_simple(text)\n",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project source file, vaderSentiment",
      "display": "skills/analytics/sentiment-analyzer/scripts/main.py",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project full_name, vaderSentiment",
      "display": "guia-matthieu/clawfu-skills",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Project stargazers_count, vaderSentiment",
      "display": "150",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Library name, stanza",
      "display": "Stanza",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Monthly downloads, stanza",
      "display": "1.0M",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "License, stanza",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Package release, stanza",
      "display": "1.15.1",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Package release date, stanza",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Install, stanza",
      "display": "pip install stanza",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Quickstart, stanza",
      "display": "import stanza\nnlp = stanza.Pipeline(lang='en', processors='tokenize,sentiment')\ndoc = nlp('I hate that they banned Mox Opal')\n",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Official description, stanza",
      "display": "Processes text in many human languages.",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Quickstart source file, stanza",
      "display": "docs/sentiment.md",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Repository stars, stanza",
      "display": "7.9K",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Non-English ready sentiment, stanza",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Separate subjectivity score, stanza",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Sentiment language coverage, stanza",
      "display": "English, Chinese, and German sentiment models; not all Stanza NLP languages",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Sentiment method and output, stanza",
      "display": "CNN sentence classifier; default output0negative/1neutral/2positive",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Observed package downloads, stanza",
      "display": "1000054",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Library name, polyglot",
      "display": "Polyglot",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Monthly downloads, polyglot",
      "display": "87.4K",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "License, polyglot",
      "display": "GPLv3",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Package release, polyglot",
      "display": "16.7.4",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Package release date, polyglot",
      "display": "Jul 2016",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Install, polyglot",
      "display": "pip install polyglot",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Quickstart, polyglot",
      "display": "from polyglot.text import Text\ntext = Text(\"The movie was really good.\")\ntext.words[4].polarity\n",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Official description, polyglot",
      "display": "Runs a multilingual natural language pipeline.",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Quickstart source file, polyglot",
      "display": "docs/Sentiment.ipynb",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Repository stars, polyglot",
      "display": "2.4K",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Non-English ready sentiment, polyglot",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Separate subjectivity score, polyglot",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Sentiment language coverage, polyglot",
      "display": "136 sentiment polarity lexicons, language-specific resources required",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Sentiment method and output, polyglot",
      "display": "Lexicon word polarity -1/0/+1 and entity sentiment aggregation",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Environment and release age, polyglot",
      "display": "Selected published16.7.4 release is from2016; Native ICU/numpy and downloaded language resources are additional requirements",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Observed package downloads, polyglot",
      "display": "87389",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Library name, flair",
      "display": "Flair",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Monthly downloads, flair",
      "display": "65.0K",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "License, flair",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Package release, flair",
      "display": "0.15.1",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Package release date, flair",
      "display": "Feb 2025",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Install, flair",
      "display": "pip install flair",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Quickstart, flair",
      "display": "from flair.data import Sentence\nfrom flair.nn import Classifier\n\n# make a sentence\nsentence = Sentence('I love Berlin .')\n\n# load the NER tagger\ntagger = Classifier.load('sentiment')\n\n# run NER over sentence\ntagger.predict(sentence)\n\n# print the sentence with all annotations\nprint(sentence)\n",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Repository stars, flair",
      "display": "14.4K",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Non-English ready sentiment, flair",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Separate subjectivity score, flair",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Sentiment language coverage, flair",
      "display": "Shipped sentiment/sentiment-fast classifiers are English; German offensive-language model is a different task",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Sentiment method and output, flair",
      "display": "DistilBERT binary sentiment or alternative RNN sentiment-fast",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Observed package downloads, flair",
      "display": "65005",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project function, flair",
      "display": "def score(self, text: str) -> int:\n    from flair.data import Sentence\n    doc = Sentence(text)\n    self.model.predict(doc)\n    pred = int(doc.labels[0].value)\n    return pred\n",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project source file, flair",
      "display": "classifiers.py",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Project full_name, flair",
      "display": "prrao87/fine-grained-sentiment",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Project stargazers_count, flair",
      "display": "171",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Library name, pysentimiento",
      "display": "pysentimiento",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Monthly downloads, pysentimiento",
      "display": "6.9K",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "License, pysentimiento",
      "display": "Custom non-commercial/research-only",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Package release, pysentimiento",
      "display": "0.7.3",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Package release date, pysentimiento",
      "display": "Mar 2024",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Install, pysentimiento",
      "display": "pip install pysentimiento",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Quickstart, pysentimiento",
      "display": "from pysentimiento import create_analyzer\nanalyzer = create_analyzer(task=\"sentiment\", lang=\"es\")\nanalyzer.predict(\"Qué gran jugador es Messi\")\n",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Official description, pysentimiento",
      "display": "Runs Transformer models for social NLP tasks.",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Quickstart source file, pysentimiento",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Repository stars, pysentimiento",
      "display": "665",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Non-English ready sentiment, pysentimiento",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Separate subjectivity score, pysentimiento",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Sentiment language coverage, pysentimiento",
      "display": "Sentiment models for es/en/it/pt; per-model dataset/license restrictions apply",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Sentiment method and output, pysentimiento",
      "display": "Transformer-based SocialNLP classifiers; language/task-specific AnalyzerOutput probabilities",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Commercial-use terms, pysentimiento",
      "display": "Current LICENSE.md restricts use to non-commercial and scientific research; model/dataset terms apply too",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Observed package downloads, pysentimiento",
      "display": "6928",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Python sentiment analysis libraries TextBlob VADER Transformers Flair polarity subjectivity training batching examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
