Skip to content

Parser output on shell is different from the demo output #24

@paridhij

Description

@paridhij

I tried a sentence "DES reduces the risk of recurrent MI, CV death and all-cause mortality" on the TurboParser online demo and the downloaded TurboParser2.3.0. I am using parse.sh to get the conll format of the parse tree. Here are the outputs:

Demo output [which is correct]:
1 DES _ NN NNP _ 2 nsubj _ _
2 reduces _ VB VBZ _ 0 null _ _
3 the _ DT DT _ 4 det _ _
4 risk _ NN NN _ 2 dobj _ _
5 of _ IN IN _ 4 prep _ _
6 recurrent _ JJ JJ _ 7 amod _ _
7 MI _ NN NNP _ 5 pobj _ _
8 , _ , , _ 7 punct _ _
9 CV _ NN NNP _ 10 nn _ _
10 death _ NN NN _ 7 conj _ _
11 and _ CC CC _ 7 cc _ _

12 all-cause _ JJ JJ _ 13 amod _ _
13 mortality _ NN NN _ 7 conj _ _

while the TurboParser2.3.0 installed version gives:

1 DES _ NNP NNP _ 2 SUB
2 reduces _ VBZ VBZ _ 0 ROOT
3 the _ DT DT _ 4 NMOD
4 risk _ NN NN _ 2 OBJ
5 of _ IN IN _ 4 NMOD
6 recurrent _ JJ JJ _ 7 NMOD
7 MI _ NNP NNP _ 13 NMOD
8 , _ , , _ 13 P
9 CV _ NNP NNP _ 13 NMOD
10 death _ NN NN _ 13 NMOD
11 and _ CC CC _ 13 NMOD
12 all-cause _ NN NN _ 13 NMOD
13 mortality _ NN NN _ 5 PMOD

Lines 8,9,10,11 have wrong dependencies, and node 13 has incorrect head. What am I missing here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions