stanfordnlp / stanza

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

Sentence Algorithms #1398

Closed tbonza closed 2 weeks ago

tbonza commented 2 weeks ago

Is your feature request related to a problem? Please describe. I saw higher level "Sentence Algorithms" are available within CoreNLP. I'm trying to better understand if an implementation is available within Python? I usually wouldn't use Java for my use cases.

Describe the solution you'd like If they are not available, it would be helpful if Sentence Algorithms were available in Python. Particularly in regards to the constituency parser available within Pipeline.

Describe alternatives you've considered I wrote a simple package to help with the constituency parser output from Pipeline which is spondee. I'm trying to better understand if it's adding anything or redundant.

Additional context Thanks for reviewing my request!

AngledLuffa commented 2 weeks ago

I'm afraid I don't know what you mean by higher level sentence algorithms. What is it you're looking for?

tbonza commented 2 weeks ago

Thanks for the question, here's an example: https://nlp.stanford.edu/nlp/javadoc/javanlp/edu/stanford/nlp/simple/SentenceAlgorithms.html

AngledLuffa commented 2 weeks ago

There's nothing specific like that in Stanza. If there are particular pieces of information you need extracted, there is a constituency parser for a few languages and a dependency parser for almost all of the languages we support.