slavpetrov / berkeleyparser

Automatically exported from code.google.com/p/berkeleyparser
GNU General Public License v2.0
180 stars 48 forks source link

Failing Parse #8

Open meyersbs opened 7 years ago

meyersbs commented 7 years ago

Consider the sentence, "May the odds be ever in your favor" and version 1.7 in this repository:

    # May the odds be ever in your favor
    (())
    # may the odds be ever in your favor
    ( (S (VP (MD may) (NP (DT the) (NNS odds)) (VP (VB be) (PP (ADVP (RB ever)) (IN in) (NP (PRP$ your) (NN favor)))))) )
    # May the odds be ever in your
    (())
    # may the odds be ever in your
    ( (S (VP (MD may) (NP (DT the) (NNS odds)) (VP (VB be) (PP (ADVP (RB ever)) (IN in) (NP (PRP$ your)))))) )
    # May the odds be ever in
    (())
    # may the odds be ever in
    ( (S (VP (MD may) (NP (DT the) (NNS odds)) (VP (VB be) (ADJP (RB ever) (FW in))))) )
    # May the odds be ever
    (())
    # may the odds be ever
    ( (S (VP (MD may) (NP (DT the) (NNS odds)) (VP (VB be) (ADVP (RB ever))))) )
    # May the odds be
    (())
    # may the odds be
    ( (S (VP (MD may) (NP (DT the) (NNS odds)) (VP (VB be)))) )

And now things get interesting...

    # May the odds
    ( (FRAG (NP (NNP May)) (NP (DT the) (NNS odds))) )
    # may the odds
    ( (FRAG (X (MD may)) (NP (DT the) (NNS odds))) )
    # May the
    ( (FRAG (NP (NNP May)) (X (DT the))) )
    # may the
    ( (FRAG (X (MD may)) (NP (DT the))) )
    # May
    ( (NP (NNP May)) )
    # may
    ( (X (MD may)) )

The results are the same when a period is appended to the end of the sentence.