from .parser import Parser, PartialParse


def build(config):
    model = Parser()
    return model


def convert_trans2dep(transitions):
    s_len = (len(transitions) + 1) // 2
    parse = PartialParse(list(range(s_len)))
    parse.parse(transitions)
    return parse.dependencies

050eea6a4e9ae6cfc0d68740201b575afe048973
<mask token>

<mask token>


def build(config):
    model = Parser()
    return model


<mask token>

<mask token>


def build(config):
    model = Parser()
    return model


def convert_trans2dep(transitions):
    s_len = (len(transitions) + 1) // 2
    parse = PartialParse(list(range(s_len)))
    parse.parse(transitions)
    return parse.dependencies

from .parser import Parser, PartialParse


def build(config):
    model = Parser()
    return model


def convert_trans2dep(transitions):
    s_len = (len(transitions) + 1) // 2
    parse = PartialParse(list(range(s_len)))
    parse.parse(transitions)
    return parse.dependencies
