# encoding=utf8
"""
    Author:  'jdwang'
    Date:    'create date: 2017-01-13'; 'last updated date: 2017-01-13'
    Email:   '383287471@qq.com'
    Describe:
"""
from __future__ import print_function
from regex_extracting.extracting.common.regex_base import RegexBase

__version__ = '1.3'


class ShootScore(RegexBase):
    name = '拍照效果'

    def __init__(self,sentence):

        # 要处理的输入句子

        self.sentence = sentence

        # region 1 初始化正则表达式
        # 描述正则表达式
        self.statement_regexs = [
            '拍照效果|照相效果|相机效果'
        ]
        # 值正则表达式
        self.value_regexs = [
            '(?<=(拍照|相机|摄影).*)(好)',
                '好(?=.*(拍照|相机|摄影))',
                '(?<=(拍照|相机|摄影))如何|(?<=(拍照|相机|摄影))怎么样|(?<=拍照|相机|摄影))怎样|(?<=拍照|相机|摄影))好不|(?<=拍照|相机|摄影))行不',
                '随意|随便|都可以|其他|别的'
        ]
        # endregion
        super(ShootScore, self).__int__()
        self.regex_process()


if __name__ == '__main__':
    price = ShootScore('价不高')
    for info_meta_data in price.info_meta_data_list:
        print('-'*80)
        print(str(info_meta_data))