Replies: 3 comments 1 reply
-
Would you give an example where the output is different?
…On Mon, Mar 14, 2022 at 10:53 AM ClaudeHu ***@***.***> wrote:
After I downloaded the stanford-corenlp-4.4.0-models-italian.jar, I tried
to run the Italia model with Stanford CoreNLP API in python:
from pycorenlp import StanfordCoreNLPparams = {'outputFormat': 'json', 'outputDirectory': outputDir, 'replaceExtension': True}CoreNLP_nlp = subprocess.Popen(
['java', '-mx' + str(5) + "g", '-cp', os.path.join(CoreNLPdir,'*'), 'edu.stanford.nlp.pipeline.StanfordCoreNLPServer','-props', 'italian', '-timeout', '999999'])CoreNLP_output = nlp.annotate(text, properties=params)
However, it seems that the dependencies in the output is different from
the dependencies annotated in the online demo (https://corenlp.run)
—
Reply to this email directly, view it on GitHub
<#1258>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2AYWKMGNXBGLOGSMRSOO3U754IXANCNFSM5QWJGH2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Got it. It seems the python client is accidentally adding a few annotators
which aren't appropriate for Italian. I'll look into it
…On Mon, Mar 14, 2022 at 3:14 PM ClaudeHu ***@***.***> wrote:
In the example sentence "Ci sono tanti, più giovani di te o meno giovani,
che vivono in attesa d'esperienze straordinarie; dai libri, dalle persone,
dai viaggi, dagli avvenimenti, da quello che il domani tiene in serbo. Tu
no. Tu sai che il meglio che ci si può aspettare è di evitare il peggio.",
the syntactical head / governor of the token "sono" is "tanti", and the
dependency relation is "cop". However, in the output of Stanford CoreNLP
running on API in python, "sono" is the ROOT.
—
Reply to this email directly, view it on GitHub
<#1258 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2AYWKD2VMUO5YBGG5FBOLU7625ZANCNFSM5QWJGH2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually, while I happened to notice the annotator issue and have been working on fixing it, when I run that particular example I still get the expected head. From the basic dependencies:
and down at the bottom:
I suppose labeling the language "UniversalEnglish" also needs fixed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After I downloaded the stanford-corenlp-4.4.0-models-italian.jar, I tried to run the Italia model with Stanford CoreNLP API in python:
However, it seems that the dependencies in the output is different from the dependencies annotated in the online demo (https://corenlp.run)
Beta Was this translation helpful? Give feedback.
All reactions