Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapting new Treebank format #50

Open
InzamamAnwar opened this issue Dec 28, 2023 · 0 comments
Open

Adapting new Treebank format #50

InzamamAnwar opened this issue Dec 28, 2023 · 0 comments

Comments

@InzamamAnwar
Copy link

Hi,

I was trying to use PETRARCH2 with newer version of CoreNLP specially Stanza. It also includes new pipeline which is robust and based on Neural Networks.

The parse tree is somewhat different from the one available from CoreNLP Docker available within this repo. An example is given below. Depending on small differences, I cannot get events from the new parsed tree format.

Original Text

Winterfell has asked the Lannister families to clarify those issues but Beijing has not yet straightened them out, he said, adding that Japan would continue to talk to China about this.

** Parsed Output from included CoreNLP Docker**

(S (S (NP (NNP WINTERFELL )  )  (VP (VP (VBZ HAS )  (VP (VBN ASKED )  (NP (DT THE )  (NNP LANNISTER )  (NNS FAMILIES )  )  (S (VP (TO TO )  (VP (VB CLARIFY )  (NP (DT THOSE )  (NNS ISSUES )  )  )  )  )  )  )  (CC BUT )  (S (NP (NNP BEIJING )  )  (VP (VBZ HAS )  (RB NOT )  (ADVP (RB YET )  )  (VP (VBD STRAIGHTENED )  (NP (PRP THEM )  )  (PRT (RP OUT )  )  )  )  )  )  )  (PRN (, , )  (S (NP (PRP HE )  )  (VP (VBD SAID )  )  )  (, , )  )  (S (VP (VBG ADDING )  (SBAR (IN THAT )  (S (NP (NNP JAPAN )  )  (VP (MD WOULD )  (VP (VB CONTINUE )  (S (VP (TO TO )  (VP (VB TALK )  (PP (TO TO )  (NP (NNP CHINA )  )  )  (PP (IN ABOUT )  (NP (DT THIS )  )  )  )  )  )  )  )  )  )  )  )  (. . )  )  

** Paresed Output from Stanza CoreNLP CLient**

(S (S (S (NP (NNP WINTERFELL )  )  (VP (VBZ HAS )  (VP (VBN ASKED )  (NP (DT THE )  (NNP LANNISTER )  (NNS FAMILIES )  )  (S (VP (TO TO )  (VP (VB CLARIFY )  (NP (DT THOSE )  (NNS ISSUES )  )  )  )  )  )  )  )  (CC BUT )  (S (NP (NNP BEIJING )  )  (VP (VBZ HAS )  (RB NOT )  (ADVP (RB YET )  )  (VP (VBN STRAIGHTENED )  (NP (PRP THEM )  )  (PRT (RP OUT )  )  )  )  )  )  (, , )  (NP (PRP HE )  )  (VP (VBD SAID )  (, , )  (S (VP (VBG ADDING )  (SBAR (IN THAT )  (S (NP (NNP JAPAN )  )  (VP (MD WOULD )  (VP (VB CONTINUE )  (S (VP (TO TO )  (VP (VB TALK )  (PP (IN TO )  (NP (NNP CHINA )  )  )  (PP (IN ABOUT )  (NP (DT THIS )  )  )  )  )  )  )  )  )  )  )  )  )  (. . )  )  

Could you please highlight how can I use new Treebank format with PETRARCH2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant