Esempio n. 1
0
class Tree(Resource):
    def __init__(self):
        self.builder = SyntaxTreeBuilder()

    def get(self, sentence):
        filename = self.builder.build(sentence)
        #return filename
        return send_file(filename, 'image/png')
Esempio n. 2
0
 def __init__(self):
     self.builder = SyntaxTreeBuilder()