Example #1
0
def rule201(sentence, keyword):
    # 匹配模式: ..., ...而且...
    return pattern.rule_scsks(sentence, keyword)
def rule40(sentence, keyword):
    # 匹配模式: ..., ...如果...
    # pos: -1
    return pattern.rule_scsks(sentence, keyword, reverse=True)