forked from HeYuwei/AIconference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
48 lines (37 loc) · 2.3 KB
/
main.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import argparse
from util import ex_funtion, assert_info, init_conf_info
if __name__ == '__main__':
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter, conflict_handler="resolve")
# parser.add_argument('--conf_list', type = object , default=['cvpr','iccv','eccv','aaai','ijcai','nips','icml','iclr','mm'],
# help='The conferences or journal to reserach.')
parser.add_argument('--conf_list', type = object , default=['arxiv'],
help='The conferences or journal to reserach.')
# parser.add_argument('--conf_list', type = object , default=['cvpr'],
# help='The conferences or journal to reserach.')
#
parser.add_argument('--time_sec', type = object, default=['201601','202002'],
help= 'The time range to research')
parser.add_argument('--with_tip', type=bool, default=False,
help='Note the keywords.')
parser.add_argument('--key_words_m', type=list, default=['nois'],
help='The words must be contained ')
parser.add_argument('--key_words_c', type=list, default=[],
help='At least one word should be contained ')
# parser.add_argument('--key_words_c', type=list, default=['stroke','infarction','apoplexy'],
# help='At least one word should be contained ')
parser.add_argument('--key_words_r', type=list, default=[],
help='The words can not be contained ')
parser.add_argument('--supply_detail_info', type=bool, default=True,
help='whether to supply detailed info')
parser.add_argument('--search_in_abstract', type=bool, default=False,
help='whether to search in abstract')
parser.add_argument('--refresh_info', type=bool, default=False,
help='Refresh local info ')
parser.add_argument('--show_order', type=str, default='cite_num', choices=['cite_num','time'],
help='the order to show papers ')
parser.add_argument('--function', type=str, default='search', choices=['search'],
help='function to perform')
opt = parser.parse_args()
opt.conf_info = init_conf_info()
assert_info(opt)
ex_funtion(opt)