def __init__(self): self.matcher = match.getMatcher("Fuzzy") self.evaluator = Evaluator() self.testSegment() self.defaultResponse = [ "你在說什麼呢?", "我不太明白你的意思" ]
def __init__(self,match_type="bm25"): self.matcher = match.getMatcher(match_type) self.evaluator = Evaluator() self.testSegment() self.defaultResponse = [ "你在說什麼呢?", "我不太明白你的意思" ]
def __init__(self, match_type="bm25"): self.matcher = match.getMatcher(match_type) self.evaluator = Evaluator() self.testSegment() self.defaultResonse = [ "?", "小哥哥,小哥哥,你在说什么啊?", "嗯" ]