Example #1
0
 def semantics(self, match):
     author = NameOf(IsPerson() + AuthorOf(match.book))
     return author, "literal"
Example #2
0
 def semantics(self, match):
     name = match.words.tokens
     return IsPerson() + HasKeyword(name)
Example #3
0
 def semantics(self, match):
     actor = NameOf(IsPerson() + StarsIn(match.movie))
     return actor, "enum"
Example #4
0
 def semantics(self, match):
     actor = IsPerson() + StarsIn(match.tvshow)
     name = LabelOf(actor)
     return name, "enum"
Example #5
0
 def semantics(self, match):
     director = IsPerson() + DirectorOf(match.movie)
     director_name = NameOf(director)
     return director_name, "literal"