Repository navigation
Expand file tree
/
Copy pathcorpus_constants.py
More file actions
93 lines (72 loc) · 2.31 KB
/
Copy pathcorpus_constants.py
File metadata and controls
93 lines (72 loc) · 2.31 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# -*- coding: utf-8 -*-
# Language Analysis ABSA v4.0
#
# Corpus Constants Bank: Based on industry type
#
# Copyright (C) 2019-2021 Guide Analytics
# Author: Michael Brock Li <michael.brock.li@gmail.com>
#
# URL: <https://guideanalytics.ca>
class CorporaConstants():
def __init__(self):
self.corpus = None
def shipping(self):
"""
:return:
"""
self.corpus = list()
PRICE = "price"
SPEED = "speed"
WEBSITE = "website"
SERVICE = "service"
QUALITY = "quality"
TECHNOLOGY = "technology"
INTERNATIONAL = "international"
COVID = "covid"
GENERAL = "general"
self.corpus.extend([PRICE, SPEED, WEBSITE, SERVICE, QUALITY, TECHNOLOGY, INTERNATIONAL, COVID, GENERAL])
return self.corpus
def real_estate(self):
"""
:return:
"""
self.corpus = list()
KNOWLEDGE = "knowledgeability"
PROFESSIONALISM = "professionalism"
COMMUNICATION = "communication and responsive"
WEBSITE_TECH = "website and technology"
VALUE_OF_SERVICE = "value of service"
REACH_LEAD_GEN = "reach and lead gen"
FRIENDLINESS = "friendliness"
HOME_PREP = "home prep"
self.corpus.extend([KNOWLEDGE, PROFESSIONALISM, COMMUNICATION,
WEBSITE_TECH, VALUE_OF_SERVICE, REACH_LEAD_GEN,
FRIENDLINESS, HOME_PREP])
return self.corpus
def neighbourhoods(self):
"""
:return:
"""
self.corpus = list()
HOUSING = "housing"
SAFETY = "safety"
TRANSIT = "transit"
SHOPPING = "shopping"
HEALTH = "health"
ENTERTAINMENT = "entertainment"
COMMUNITY_CRIME = "community and crime"
DIVERSITY_INCLUSION = "diversity and inclusion"
EDUCATION = "education"
EMPLOYMENT = "employment"
LOCAL = "local"
self.corpus.extend([HOUSING, SAFETY, TRANSIT, SHOPPING,
HEALTH, ENTERTAINMENT, COMMUNITY_CRIME,
DIVERSITY_INCLUSION, EDUCATION, EMPLOYMENT,
LOCAL])
return self.corpus
def flashlight(self):
"""
:return:
"""
self.corpus = list()
return self.corpus