def parse(self, text):
    text = self.preprocess_text(text)
    out = ''
    try:
        parse_results = self.parser.raw_parse(text)
        for dependency_tree in parse_results:
            for (index, node) in dependency_tree.nodes.items():
                if (node['word'] is None):
                    continue
                dependency_str = ''
                for (dep, index) in node['deps'].items():
                    dependency_str += ',{}/{}'.format(str((index[0] - 1)), dep)
                dependency_str = dependency_str[1:]
                dependency_str = '{}/{}'.format(node['rel'], node['head'])
                out += '{}/{}[{}] '.format(node['word'], node['tag'], dependency_str)
            out += '\n'
        return out
    except AssertionError as e:
        print('error when parse "{}"'.format(text))
    return ''
def parse(self, text):
    text = self.preprocess_text(text)
    out = 
    try:
        parse_results = self.parser.raw_parse(text)
        for dependency_tree in parse_results:
            for (index, node) in dependency_tree.nodes.items():
                if (node['word'] is None):
                    continue
                dependency_str = 
                for (dep, index) in node['deps'].items():
                    dependency_str += ',{}/{}'.format(str((index[0] - 1)), dep)
                dependency_str = dependency_str[1:]
                dependency_str = '{}/{}'.format(node['rel'], node['head'])
                out += '{}/{}[{}] '.format(node['word'], node['tag'], dependency_str)
            out += '\n'
        return out
    except AssertionError as e:
        print('error when parse "{}"'.format(text))
    return 