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