Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a tree visualization for google nl api?

How can you develop a tree for the syntax analysis in google nl api. Like stanford corenlp uses brat annotation tool to generate the tree. Can we use something like that to generate a dependency parse tree for the json response for google nl api, if so how?

Thanks in advance :)

like image 350
Amrit Bulusu Avatar asked Dec 09 '25 02:12

Amrit Bulusu


1 Answers

There's the demo UI -- go to the NL API home page and scroll down to the interactive demo. There you can put in a sentence, click on "syntax" and get a pretty tree that shows the parse tree.

Parse tree visualization

In the actual demo, you can mouse over the tokens to see more detail, like morphology.

This will help for individual examples. If you want to visualize these things programatically, you'll have to implement that yourself, or use existing tools.

like image 120
Dave Orr Avatar answered Dec 11 '25 17:12

Dave Orr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!