-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
62 lines (55 loc) · 1.81 KB
/
config.py
File metadata and controls
62 lines (55 loc) · 1.81 KB
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
REGEX = {
"happy": ":\-?[\)\]D]",
"sad": ":'?\-?\(",
'shock': ":\-O|:\-\(\)",
"uneasy": ":\-/",
"evil": ">:\-[\(D]",
" ": "(http[s]?:\/\/)?([\w_-]+(?:(?:\.[\w_-]+)+))" +
"([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?"
}
# turney POS list
SENTI_POS = ['JJ', 'JJR', 'JJS', 'RB', 'RBR', 'RBS', 'VB', 'VBD', 'VBG',
'VBN', 'VBP', 'VBZ']
# ,'NN', 'NNS', 'NNP', 'NNPS'
FIRST_LIST = ["JJ", "RB", "RBR", "RBS", "NN", "NNS"]
SECOND_LIST = ["JJ", "NN", "NNS", "VB", "VBD", "VBN", "VBG"]
THIRD_LIST = ["NN", "NNS"]
# ADJ, ADJ_SAT, ADV, NOUN, VERB = 'a', 's', 'r', 'n', 'v'
POS_LIST = {
'VB': 'v',
'VBD': 'v',
'VBG': 'v',
'VBN': 'v',
'VBP': 'v',
'VBZ': 'v',
'JJ': 'a',
'JJR': 'a',
'JJS': 'a',
'RB': 'r',
'RBR': 'r',
'RBS': 'r',
'NN': 'n',
'NNS': 'n',
'NNPS': 'n',
}
# Amazon Config
AMAZON_SEARCH_INDEX = ['All', 'Beauty', 'Grocery', 'PetSupplies',
'OfficeProducts', 'Electronics', 'Watches',
'Jewelry', 'Luggage', 'Shoes', 'KindleStore',
'Automotive', 'MusicalInstruments', 'GiftCards',
'Toys', 'SportingGoods', 'PCHardware', 'Books', 'Baby',
'HomeGarden', 'VideoGames', 'Apparel',
'Marketplace', 'DVD', 'Music', 'HealthPersonalCare']
AMAZON_ACCESS_KEY_ID = "AKIAJF6RPKBHOO5S4VCA"
AMAZON_ACCESS_SECRET_KEY = "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"
AMAZON_ASSOCIATE_TAG = "oldbooks-21"
AMAZON_XPATH = {
"_items": "Items/Item",
"brand": "ItemAttributes/Publisher",
"category_name": "ItemAttributes.Title",
"description": "EditorialReviews/EditorialReview/Content",
"id": "ASIN",
"reviews_url": "ItemLinks/ItemLink",
"image_url": "LargeImage/URL",
"product_name": "ItemAttributes/Title"
}