- for btype, ptype, tlist in args:
- if q is None:
- q = QueryStruct([Phrase(ptype, '')])
- else:
- q.add_node(btype, ptype)
-
- start = len(q.nodes) - 1
- for end, ttype in tlist:
- q.add_token(TokenRange(start, end), ttype, [dummy])
-
+ for btype, ptype, _ in args[1:]:
+ q.add_node(btype, ptype)