-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
30 lines (21 loc) · 947 Bytes
/
config.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
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
# Flask variables
DEBUG = os.environ.get('DEBUG') or True
JSON_AS_ASCII = False
SECRET_KEY = os.environ.get('PARSERBOT_SECRET_KEY')
# Scraperbot variable
SCRAPERBOT_SECRET_KEY = os.environ.get('SCRAPERBOT_SECRET_KEY')
# Resource-specific variables
_stanford_ner_basedir = os.path.join(
_basedir, "parserbot", "stanford-ner")
STANFORD_JARFILE = os.path.join(
_stanford_ner_basedir, "stanford-ner.jar")
STANFORD_DEFAULT_CLASSIFIER = os.path.join(
_stanford_ner_basedir, "english.all.3class.distsim.crf.ser.gz")
CALAIS_API_KEY = os.environ.get('CALAIS_API_KEY')
CALAIS_ENDPOINT = 'https://api.thomsonreuters.com/permid/calais'
FREEBASE_API_KEY = os.environ.get('FREEBASE_API_KEY')
FREEBASE_ENDPOINT = "https://www.googleapis.com/freebase/v1/mqlread"
ZEMANTA_API_KEY = os.environ.get('ZEMANTA_API_KEY')
ZEMANTA_ENDPOINT = 'http://api.zemanta.com/services/rest/0.0/'