Hold-Krykke / PythonExam

4. Semester Python Eksamens Projekt
1 stars 1 forks source link

Sentiment Analysis #9

Closed Castau closed 4 years ago

Castau commented 4 years ago

This Pull Request is the solution to User Story #3


For Review

Check out this commit if you want to run this module during the review - it contains Rúnis preprocessing. Make sure you have everything from the setup file installed and downloadet. Then you should be able to just run it.

This is how each tweet ends up looking after the Sentiment Analysis:

image


Tasks


The result of the first edition looks like this:

[
  {
    'tweet': 'This tweet year', 
    'hashtags': [
      '#MyFirstTweet'
      ], 
    'people': [
      '@folketinget'
      ], 
    'urls': [
      'runivn.dk'
      ], 
    'author': 'Runi Vedel', 
    'date': '01/05/2020', 
    'sentiment_analysis': [
      {
        'verdict': 'Positive', 
        'positive_procent': 0.61, 
        'negative_procent': 0.39
      }
    ]
  }, 
  {
    'tweet': ......
  }
]
Castau commented 4 years ago

Nice and clean. :)

Would be cool if you could gitignore __pycache__, should be local only

Sure - I'll just fix that :)