Inspiration
After seeing Bells challenge and how AI is being used, we were motivated to create this program
What it does
It utilizes data from Twitter to identify problems customers are stating in order to fix issues quickly.
How we built it
First, we identified keywords from text data which we then used to AI to identify them as positive, negative, neutral when a certain threshold of negative keywords along with locations was passed.
Challenges we ran into
We ran into many small problems with running Python, as well as problem implenting AI and using TextBlob
Accomplishments that we're proud of
Creating code to utilize keywords.
What we learned
How to incorporate AI into programming
What's next for Hermes
Further developing the program to utilize time as well as date and location.
a = "" countComment =0 countNot = 0 countNoting = 0 countIssue = 0 countUsel = 0 cService = 0 cWhen =0 cHow =0 cTime =0 cMore =0 cPay=0 cCustomer =0 cSupport =0 cWorst=0 cBill=0 cRefund=0 cOverage=0
list = ["not","nothing","issue","useless","service","when","how","time","more","pay","customer","support","worst","bill","refund","overage"] f = open("bell_support.txt", encoding="utf8") for x in f: if x != "\n": if x.find("@") != -1 : if x != "\n": a = x.split(",") print(a) countComment = countComment+1 if a[2].find(list[0]) != -1 : countNot = countNot + 1 if a[2].find(list[1]) != -1 : countNoting = countNoting + 1 if a[2].find(list[2]) != -1 : countIssue = countIssue + 1 if a[2].find(list[3]) != -1 : countUsel = countUsel + 1 if a[2].find(list[4]) != -1 : cService = cService + 1 if a[2].find(list[5]) != -1 : cWhen = cWhen + 1 if a[2].find(list[6]) != -1 : cHow = cHow + 1 if a[2].find(list[7]) != -1 : cTime = cTime + 1 if a[2].find(list[8]) != -1 : cMore = cMore + 1 if a[2].find(list[9]) != -1 : cPay = cPay + 1 if a[2].find(list[10]) != -1 : cCustomer = cCustomer + 1 if a[2].find(list[11]) != -1 : cSupport = cSupport + 1 if a[2].find(list[12]) != -1 : cWorst = cWorst + 1 if a[2].find(list[13]) != -1 : cBill = cBill + 1 if a[2].find(list[14]) != -1 : cRefund = cRefund + 1 if a[2].find(list[15]) != -1 : cOverage = cOverage + 1
print("\n-------------------------------------------") print("All comments : " , countComment) print("Count word 'Not' : ", countNot) print("Count word 'Nothing' : ",countNoting) print("Count word 'Issue' : ",countIssue) print("Count word 'Useless' : ",countUsel) print("Count word 'Service' : ",cService) print("Count word 'When' : ",cWhen) print("Count word 'How' : ",cHow) print("Count word 'Time' : ",cTime) print("Count word 'More' : ",cMore) print("Count word 'Pay' : ",cPay) print("Count word 'Customer' : ",cCustomer) print("Count word 'Support' : ",cSupport) print("Count word 'Worst' : ",cWorst) print("Count word 'Bill' : ",cBill) print("Count word 'Refund' : ",cRefund) print("Count word 'Overage' : ",cOverage) print("-------------------------------------------")
f.close()
Log in or sign up for Devpost to join the conversation.