-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
33 lines (26 loc) · 981 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
31
32
33
# Copyright (c) 2023.
# !/usr/bin/python
# -*- coding: UTF-8 -*-
# @Project: mist
# @FileName: config
# @Author:Ryan Zhang(https://github.com/hz157),Uyoin (Yilong Wu) (https://github.com/uyoin)
# @DateTime: 3/3/2023 上午10:31
"""
Centralized Configuration File
"""
# BAIDU API
BAIDU_API_HOST = 'https://api.map.baidu.com' # Baidu Map Open Platform URL
# Baidu Maps Open Platform Access Key
BAIDU_API_AK = [{'wXt8jjWgphuL7q4YIfUReDVHer9jp8Hi': True},
{'30PacN0iMGMvFno0na0xglGNXf1MWasI': True}]
# TENCENT API
TENCENT_API_HOST = 'https://apis.map.qq.com'
TENCENT_API_KEY = ''
TENCENT_API_SK = ''
# LOCAL FILE PATH
ORIGINAL_PATH = r'/content/MIST-SMMD/asserts/dataset/weibo_dataset.xlsx'
TEMP_SAVE_PATH = r'/content/MIST-SMMD/output/coarse_ist_temp.csv'
RESULT_SAVE_PATH = r'/content/MIST-SMMD/output/coarse_ist_result.xlsx'
# KEYWORD
TIME_KEYWORD = ["月","日","昨天","今天","前天"] # Time-related keywords
FAC_REVERSE_KEYWORD = ['消防', '派出所']