Exemple #1
0
 def style4(self, x, slot_date, slot_money):
     x = nlex.Date(x, slot=slot_date)
     x = nlex.AnyWord(x, repeat="*")
     x = nlex.Word(x, "欠")
     x = nlex.Word(x, "原告")
     x = nlex.Word(x, "现金", repeat="?")
     x = nlex.Money(x, slot=slot_money)
     return x
Exemple #2
0
    def lend_phrase(self, x):
        x1 = nlex.Word(x, ["借款", "抬款", "贷款"])
        x11 = nlex.Word(x1, "本金", repeat="?")
        x11 = nlex.Word(x11, ["现金", "人民币"], repeat="?")

        x12 = nlex.Word(x1, "人民币", repeat="?")
        x12 = nlex.Word(x12, "本金", repeat="?")
        x1 = nlex.All(x11, x12)

        x2 = nlex.Word(x, "借")
        x2 = nlex.Word(x2, ["现金", "人民币"], repeat="?")

        return nlex.All(x1, x2)
Exemple #3
0
 def style2(self, x, slot_date, slot_money):
     x = nlex.Date(x, slot=slot_date)
     x = nlex.AnyWord(x, repeat="*")
     x = nlex.Word(x, "原告")
     x = nlex.AnyWord(x, repeat="*")
     x = nlex.Word(x, "将")
     x = nlex.AnyWord(x, repeat="*")
     x = nlex.Money(x, slot=slot_money)
     x = nlex.AnyWord(x, repeat="*")
     x = nlex.Word(x, "出借")
     x = nlex.Word(x, "给")
     x = nlex.Word(x, "了", repeat="*")
     x = nlex.Word(x, "被告")
     return x
Exemple #4
0
 def style1(self, x, slot_date, slot_money):
     x = nlex.Date(x, slot=slot_date)
     x = nlex.Word(x, ["归还", "还款", "偿还", "利息", "欠息"], neq=True, repeat="*")
     x = self.lend_phrase(x)
     x = nlex.Money(x, slot=slot_money)
     return x