Exemple #1
0
def dep_parse(sentence='every cat leaves', verbose=False):
    from nltk_contrib.dependency import malt
    dep_graphs = [malt.parse(sentence, verbose)]
    return dep_graphs
Exemple #2
0
def demo_depparse():
    from nltk_contrib.dependency import malt
    dg = malt.parse('John sees Mary', True)
    print FStructure.read_depgraph(dg)
Exemple #3
0
def dep_parse(sentence='every cat leaves', verbose=False):
    from nltk_contrib.dependency import malt
    dep_graphs = [malt.parse(sentence, verbose)]
    return dep_graphs