Skip to content

Apposition breaks Constituency parser in Corenlp 4.x while not in Corenlp 3.9.x #1253

@diegollarrull

Description

@diegollarrull

Issue:

Adding an apposition to a sentence breaks the constituency parse in CoreNLP 4.x (tested with 4.2.2 and 4.4.0) while it doesnt happen in CoreNLP 3.9.1

Steps to reproduce:

Parse with constituency parse the following two questions:

  • is there a way to fix this?
  • however, with this apposition, is there a way to fix this?

Expected output:

"there" should have the EX tag in both questions

Actual output:

CoreNLP 4.x: "there" has the EX tag in the first sentence and the RB tag in the sentence with the apposition
CoreNLP 3.9: "there" has the EX tag in both questions

Please see attached images for visual confirmation

CoreNLP4 - No apposition:
corenlp4_no_apposition

CoreNLP4 - with apposition:
corenlp4_apposition

CoreNLP3 - No apposition:
corenlp3_no_apposition

CoreNLP3 - with apposition:
corenlp3_apposition

Thank you very much in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions