This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def swear(self, mess, args): | |
"swears randomley from a list of high level swear words" | |
swears = ["neech","kameen","kuttey", "howley", "saaley", "monkey", " kaachina vennela to tea pettukune mohavu nuvvu nu ","thitlu adukkunne mohamu nuvvoonu ", " currentu teegaki uyyala eskune ooge mohavu nuvvu" , "donkey", "vudathalu patte mokam", "chapathi mokam", "washbasin lo chepalu patte mokam", "gaali vaanalo visnakarrlu ammukune mokam", "Chunchu mokam", "ghootley", "jaffa", "tussha", "daffa", "jumper mein bumper", "panther pagdi" ,"lapaki paapa" ] | |
from random import choice | |
self.message_queue.append(choice(swears)+ " " + choice(swears) + " " + choice(swears) + " "+ args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nltk.probability import ELEProbDist, FreqDist | |
from nltk import NaiveBayesClassifier | |
from collections import defaultdict | |
train_samples = { | |
'I hate you and you are a bad person': 'neg', | |
'I love you and you are a good person': 'pos', | |
'I fail at everything and I want to kill people' : 'neg', | |
'I win at everything and I want to love people' : 'pos', | |
'sad are things are heppening. fml' : 'neg', |