-
Notifications
You must be signed in to change notification settings - Fork 3
/
instance.py
30 lines (22 loc) · 763 Bytes
/
instance.py
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
#!/usr/bin/env python
""" instance.py: Instance class for WT2018 project. Contains non-binary label and ordered
list of words for each tweet. """
__author__ = "Quinn Barker-Plummer"
__email__ = "[email protected]"
__status__ = "Development"
class Instance:
def __init__(self):
self.label = None
self.fulltweet = "" # Original tweet
self.wordlist = [] # Tokenized tweet
self.clean_tweet = "" # Processed tweet
def __str__(self):
return str([self.label, self.fulltweet])
def getCleanTweet(self):
return self.clean_tweet
def getFullTweet(self):
return self.fulltweet
def getWordList(self):
return self.wordlist
def getLabel(self):
return self.label