stanfordnlp / stanza

Stanford NLP Python library for tokenization, sentence segmentation, NER, and parsing of many human languages
https://stanfordnlp.github.io/stanza/
Other
7.22k stars 888 forks source link

about scene graph in original standford NLP #1207

Closed chaojiewang94 closed 1 year ago

chaojiewang94 commented 1 year ago

Thanks for sharing. I wonder if you have included the implemantion of scene graph (https://nlp.stanford.edu/software/scenegraph-parser.shtml) in the current version of stanza?

If so, can you share a demo for how to transfer a sentence to a scene graph, thanks.

AngledLuffa commented 1 year ago

There is no Python interface to the Java scenegraph, unfortunately. What are you looking for?

chaojiewang94 commented 1 year ago

I wonder if I can use the client (https://stanfordnlp.github.io/stanza/corenlp_client.html) to access the scenegraph in CoreNLP (https://github.com/stanfordnlp/CoreNLP/tree/ef9022322c14bbafab18a0002173e56ae377d6ef/src/edu/stanford/nlp/scenegraph)

or you can provide other more straightforward ways to achieve similar results?

AngledLuffa commented 1 year ago

python interface released in 1.5.1

chaojiewang94 commented 1 year ago

@AngledLuffa can u provide your demo code to use client.secengraph, thanks, there are stil some bugs during my calling the API of stanza 1.5.1

AngledLuffa commented 1 year ago

what failure are you getting?

this works for me with the latest CoreNLP (4.5.5) and the latest stanza (1.5.1)

https://github.com/stanfordnlp/stanza/commit/b63fdfe97dda1a383fcf1c8d95f0101481a6a709