Skip to content
View ELONISEVIL's full-sized avatar
πŸ’­
I may be slow to respond.
πŸ’­
I may be slow to respond.

Block or report ELONISEVIL

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
ELONISEVIL/README.md

import nltk from nltk.sentiment.vader import SentimentIntensityAnalyzer

Download the VADER lexicon

nltk.download('vader_lexicon')

def main(): # Initialize the SentimentIntensityAnalyzer sid = SentimentIntensityAnalyzer()

# Get input text from the user
text = input("Enter a sentence: ")

# Compute sentiment scores
scores = sid.polarity_scores(text)

# Determine the sentiment based on the compound score
if scores['compound'] >= 0.05:
    sentiment = "positive"
elif scores['compound'] <= -0.05:
    sentiment = "negative"
else:
    sentiment = "neutral"

# Display the sentiment
print(f"Sentiment: {sentiment}")

Entry point of the script

if name == "main": main()START IF (Trigger event like Wi-Fi connected) THEN HTTP POST to https://api.github.com/repos/{owner}/{repo}/issues HEADERS: Authorization: token YOUR_GITHUB_TOKEN Content-Type: application/json BODY: { "title": "Automated Issue from Android", "body": "This issue was created automatically using Automate on Android." } IF (HTTP Response == 201) THEN Send notification "Issue Created Successfully!" ELSE Send notification "Issue Creation Failed!"import nltk from nltk.sentiment.vader import SentimentIntensityAnalyzer

nltk.download('vader_lexicon')

def main(): sid = SentimentIntensityAnalyzer() text = input("Enter a sentence: ")

scores = sid.polarity_scores(text)

if scores['compound'] >= 0.05: sentiment = "positive" elif scores['compound'] <= -0.05: sentiment = "negative" else: sentiment = "neutral"

print(f"Sentiment: {sentiment}") if name == "main": main()

πŸ‘‹ Hi, I’m @DOUGLASDAVIS πŸ‘€ I’m interested in ... yarn add chatgpt && yarn install 🌱 I’m currently learning ... πŸ’žοΈ I’m looking to collaborate on ... πŸ“« How to reach me ... πŸ˜„ Pronouns: ... ⚑ Fun fact: ...START IF (Trigger event like Wi-Fi connected) THEN HTTP POST to https://api.github.com/repos/{owner}/{repo}/issues HEADERS: Authorization: token YOUR_GITHUB_TOKEN Content-Type: application/json BODY: { "title": "Automated Issue from Android", "body": "This issue was created automatically using Automate on Android." } IF (HTTP Response == 201) THEN Send notification "Issue Created Successfully!" ELSE Send notification "Issue Creation Failed!"import nltk from nltk.sentiment.vader import SentimentIntensityAnalyzer

nltk.download('vader_lexicon')

def main(): sid = SentimentIntensityAnalyzer() text = input("Enter a sentence: ")

scores = sid.polarity_scores(text)

if scores['compound'] >= 0.05:
    sentiment = "positive"
elif scores['compound'] <= -0.05:
    sentiment = "negative"
else:
    sentiment = "neutral"

print(f"Sentiment: {sentiment}")

if name == "main": main()

  • πŸ‘‹ Hi, I’m @DOUGLASDAVIS
  • πŸ‘€ I’m interested in ... yarn add chatgpt && yarn install
  • 🌱 I’m currently learning ...
  • πŸ’žοΈ I’m looking to collaborate on ...
  • πŸ“« How to reach me ...
  • πŸ˜„ Pronouns: ...
  • ⚑ Fun fact: ...

Pinned Loading

  1. THE-GR8EST THE-GR8EST Public

    Python

  2. ADD-A-BUTTON ADD-A-BUTTON Public template

  3. repo repo Public

  4. github/docs github/docs Public

    The open-source repo for docs.github.com

    JavaScript 16.1k 59.3k