This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
81 lines (67 loc) · 3.49 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#---------------------------------------
# Getting Started Info:
#---------------------------------------
Read How_To_Get_Twitter_APIs file in this directory.
For the Name field, simply write a name for your application. It can be “MyApp” or anything.
In the Description field, you can write something about your application so that you can be reminded later of what it does. Lastly, for the Website field, you can enter your own website,
but if you don’t have any, https://www.site.com will suffice.
Note that we are not writing anything down in the Callback URL field. Leave that blank for now. Once you’re done, tick the agreement checkbox and click “Create your Twitter Application”
Once your application has already been created, a dashboard will appear in your browser. Go to “Keys and Access Tokens” tab and generate your consumer keys and access tokens if they’re not yet available. By the end of this process, we now have the following keys, and we’ll refer to them as the following:
Consumer Key (API Key), consumer_key
Consumer Secret (API Secret), consumer_secret
Access Token, access_token
Access Token Secret, access_token_secret
Take note of these variables for we’ll use them later on.
#---------------------------------------
# Feature List.
#---------------------------------------
Pune Smart city Twitter sentiment Analysis
Technology Stack:
textblob :
twitter streaming APIs :
NLTK, NLP python modules
Understanding Polarity and subjectivity:
Return a tuple of form (polarity, subjectivity ) where polarity is a float number within the range [-1.0, 1.0]
and subjectivity is a float within the range [0.0, 1.0] where 0.0 is very objective and 1.0 is very subjective.
Polarity: Polarity scorem also known as orientation polarity is the emotion expressed in the sentence.
It can be positive, negative or neutral. -0.5 score indicates strongly negative and 0.7 strongly positive number.
Subjectivity: It measures the extent to which sentence, represents personal feelings, views, or beliefs compared
to objective truth or facts. Ex: 0.0 is very objective and 1.0 is very subjective.
https://planspace.org/20150607-textblob_sentiment/
# TBD: Tags need to be more descriptive.
# POS tag list:
# CC coordinating conjunction
# CD cardinal digit
# DT determiner
# EX existential there (like: "there is" ... think of it like "there exists")
# FW foreign word
# IN preposition/subordinating conjunction
# JJ adjective 'big'
# JJR adjective, comparative 'bigger'
# JJS adjective, superlative 'biggest'
# LS list marker 1)
# MD modal could, will
# NN noun, singular 'desk'
# NNS noun plural 'desks'
# NNP proper noun, singular 'Harrison'
# NNPS proper noun, plural 'Americans'
# PDT predeterminer 'all the kids'
# POS possessive ending parent\'s
# PRP personal pronoun I, he, she
# PRP$ possessive pronoun my, his, hers
# RB adverb very, silently,
# RBR adverb, comparative better
# RBS adverb, superlative best
# RP particle give up
# TO to go 'to' the store.
# UH interjection errrrrrrrm
# VB verb, base form take
# VBD verb, past tense took
# VBG verb, gerund/present participle taking
# VBN verb, past participle taken
# VBP verb, sing. present, non-3d take
# VBZ verb, 3rd person sing. present takes
# WDT wh-determiner which
# WP wh-pronoun who, what
# WP$ possessive wh-pronoun whose
# WRB wh-abverb where, when