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