-
Notifications
You must be signed in to change notification settings - Fork 0
/
document.py
27 lines (25 loc) · 1.01 KB
/
document.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
class Document:
def __init__(self, tweet_id, tweet_date=None, full_text=None, url=None, retweet_text=None, retweet_url=None,
quote_text=None, quote_url=None, term_doc_dictionary=None, doc_length=0):
"""
:param tweet_id: tweet id
:param tweet_date: tweet date
:param full_text: full text as string from tweet
:param url: url
:param retweet_text: retweet text
:param retweet_url: retweet url
:param quote_text: quote text
:param quote_url: quote url
:param term_doc_dictionary: dictionary of term and documents.
:param doc_length: doc length
"""
self.tweet_id = tweet_id
self.tweet_date = tweet_date
self.full_text = full_text
self.url = url
self.retweet_text = retweet_text
self.retweet_url = retweet_url
self.quote_text = quote_text
self.quote_url = quote_url
self.term_doc_dictionary = term_doc_dictionary
self.doc_length = doc_length