コード例 #1
0
    def interpret(self, match):
        _country, i, j = match.country
        president = PresidentOf(_country)
        incumbent = IncumbentOf(president)
        label = LabelOf(incumbent)

        return label, ReturnValue(i, j)
コード例 #2
0
    def interpret(self, match):
        president = PresidentOf(match.country)
        incumbent = IncumbentOf(president)
        label = LabelOf(incumbent)

        return label, "enum"
コード例 #3
0
 def interpret(self, match):
     president = PresidentOf(match.country)
     incumbent = IncumbentOf(president)
     label = LabelOf(incumbent)
     pronouns.fetchHisFromAnswers = True
     return label, "enum"