Esempio n. 1
0
    from common.log import log

    sys.path.append('../../')

    with open('../../entity.toml', 'rb') as config:
        conf = pytoml.load(config)

    log.init_log(conf, console_out=conf['logger']['console'])
    conf['log'] = log

    topic_id = 33
    from i_entity_extractor.entity_extractor_route import EntityExtractorRoute
    from i_entity_extractor.common_parser_lib.mongo import MongDb
    import json

    route = EntityExtractorRoute(conf)
    topic_info = route.all_topics.get(topic_id, None)
    begin_time = time.time()
    obj = PppProjectExtractor(topic_info, log)
    extract_data = {
        "demonstration_project_batch": "",
        "money_unit": "元",
        "_record_id": "c81fd13bd09d7248857d2a5f6d8b968d",
        "reward_mechanism": "可行性缺口补助",
        "city": "邢台市",
        "district": "清河县",
        "contacts": "唐洪刚",
        "demonstration_project_level": "其它",
        "_in_time": "2016-10-14 17:42:45",
        "content":
        "邢台市清河县生活垃圾焚烧发电项目 \r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t所在地区\r\n\t\t\t\t\t\t\t河北省\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t--> 邢台市\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t--> 清河县\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t所属行业\r\n\t\t\t\t\t\t\t能源->垃圾发电\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t投资金额\r\n\t\t\t\t\t\t\t        30,000万元\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tPPP实施阶段\r\n\t\t\t\t\t\t\t识别阶段\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t拟合作期限\r\n\t\t\t\t\t\t\t30年\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t项目运作方式\r\n\t\t\t\t\t\t\tBOT\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t回报机制\r\n\t\t\t\t\t\t\t可行性缺口补助\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t发起时间\r\n\t\t\t\t\t\t\t2015-01-01\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t发起类型\r\n\t\t\t\t\t\t\t政府发起\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t项目概况\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 清河县生活垃圾焚烧发电项目,生产规模为日处理生活垃圾600吨:其中一期规模是日处理生活垃圾400吨/日,垃圾保底量是300吨/日。在不违反国家法律、法规、政策前提下,社会资本自筹资金完成本项目的建设。社会资本选择方式为竞争性谈判,计划特许经营期为三十年(不含建设期),自生活垃圾焚烧发电设施投入商业运营之日起开始计算。项目在建设、运营阶段的权属归社会资本方所有,运营期结束阶段的权属归政府所有。\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t联系人\r\n\t\t\t\t\t\t\t唐洪刚\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t联系人电话\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t示范/推介项目级别\r\n\t\t\t\t\t\t\t其它\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t示范项目批次",
Esempio n. 2
0
 def __init__(self, conf):
     BaseEtl.__init__(self, conf)
     route = EntityExtractorRoute(conf)
     self.topic_id = 32
     topic_info = route.all_topics.get(self.topic_id, None)
     self.wenshu_obj = JudgeWenshuExtractor(topic_info, conf.get('log'))
Esempio n. 3
0
 def __init__(self, conf):
     BaseEtl.__init__(self,conf)
     route         = EntityExtractorRoute(conf)
     self.topic_id = 33
     topic_info    = route.all_topics.get(self.topic_id, None)
     self.fygg_obj = FyggExtractor(topic_info, conf.get('log'))
Esempio n. 4
0
 def __init__(self, conf):
     BaseEtl.__init__(self,conf)
     route         = EntityExtractorRoute(conf)
     self.topic_id = 37
     topic_info    = route.all_topics.get(self.topic_id, None)
     self.judge_process_obj = JudgeProcessExtractor(topic_info, conf.get('log'))