Пример #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"