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

ParentendTree into SpacyExt #84

Open
chlor opened this issue Jun 21, 2021 · 0 comments
Open

ParentendTree into SpacyExt #84

chlor opened this issue Jun 21, 2021 · 0 comments

Comments

@chlor
Copy link

chlor commented Jun 21, 2021

Hi,
is it possible to write the parse string spacy into the spacy ext.
I want to compute the tree height of the parsed const. string and I want to use NLTK embedded commands like tree.height of the structure of Tree or ParentedTree.

I've solved it with the following code snipped

parse_tree = ParentedTree.fromstring(sent._.parse_string)
parse_tree.height()

Is it possible to load the tree from the benepar spacy interface in a direct way, e.g. in the NLTK commands tree = parser.parse(input_sentence)?

Best Regards, Christina Lohr

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