# Path: grafeno/transformers/interrogative.py
# class Transformer (PosExtract):
# 
#     def __init__ (self, **kwds):
#         super().__init__(**kwds)
#         self.graph.questions = []
# 
#     def transform_node (self, msnode):
#         sem = super().transform_node(msnode)
#         tag_pos = msnode.get('tag', msnode.get('pos'))
#         if tag_pos and tag_pos.startswith('w'):
#             sem['concept'] = '?'
#             sem['sempos'] = 'n'
#         return sem
# 
#     def post_insertion (self, sentence_nodes):
#         super().post_insertion(sentence_nodes)
#         for n in sentence_nodes:
#             if self.graph.node[n]['concept'] == '?':
#                 self.graph.questions.append(n)


from grafeno.transformers.interrogative import Transformer as Interrogative

class Transformer (Interrogative):

    def transform_dep (self, dep, pid, cid):
        edge = super().transform_dep(dep, pid, cid)
        if dep == 'relcl':
            edge['functor'] = 'RESTR'
        return edge


# Path: grafeno/transformers/interrogative.py
# class Transformer (PosExtract):
# 
#     def __init__ (self, **kwds):
#         super().__init__(**kwds)
#         self.graph.questions = []
# 
#     def transform_node (self, msnode):
#         sem = super().transform_node(msnode)
#         tag_pos = msnode.get('tag', msnode.get('pos'))
#         if tag_pos and tag_pos.startswith('w'):
#             sem['concept'] = '?'
#             sem['sempos'] = 'n'
#         return sem
# 
#     def post_insertion (self, sentence_nodes):
#         super().post_insertion(sentence_nodes)
#         for n in sentence_nodes:
#             if self.graph.node[n]['concept'] == '?':
#                 self.graph.questions.append(n)


# Path: grafeno/transformers/relative.py
from grafeno.transformers.interrogative import Transformer as Interrogative


class Transformer (Interrogative):

    def transform_dep (self, dep, pid, cid):
        edge = super().transform_dep(dep, pid, cid)
        if dep == 'relcl':
            edge['functor'] = 'RESTR'
        return edge


    def post_process (self):