Skip to content

A small tool to draw a only-text tree as the result of stanford coreNLP.

Notifications You must be signed in to change notification settings

Gii16/TreeDrawer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tree Drawer For StanfordCoreNLP

A small tool to draw a only-text tree as the result of stanford coreNLP. Welcome to use!

See Example.java to use.

The tree we get like this:

                                                            ROOT                                                            
                                                             |                                                             
                                                             S                                                             
                            ╭╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╮  
                            S                              ,     NP                          VP                         .  
    ╭╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╮                          |     |        ╭╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╮                     |  
   NP                          VP                          ,    PRP      MD                      VP                     .  
   |       ╭╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╮                             |       |        ╭╶╶╶╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╮       
  PRP     VBZ                     NP                            you     can      VB          NP              PP       
   |       |             ╭╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╮                                   |        ╭╶╶╶╶╶╶╶╮       ╭╶╶╶╶╶╶╶╮   
  It      is            NP                  PP                                  use      DT      NN      IN      NP   
                  ╭╶╶╶╶╶╶╶╶╮           ╭╶╶╶╶╶╶╶╶╶╮                                       |        |       |       |   
                 DT       NNS         IN        NP                                      the     tool    like     DT   
                 |         |          |          |                                                                |   
                 a     sentences     for        NN                                                              that  
                                                |     
                                             example  



                                                use/VB                                                
                    ╭╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶╶╮   
                 ccomp                   punct    nsubj       aux        dobj      nmod:like   punct 
                    |                       |        |          |          |            |         |   
              sentences/NNS                ,/,    you/PRP    can/MD     tool/NN      that/DT     ./.  
     ╭╶╶╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶╶┬╶╶╶╶╶╶╶╶╶╮                                      |            |     
   nsubj       cop       det    nmod:for                                  det         case    
     |          |         |         |                                      |           |     
  It/PRP     is/VBZ     a/DT   example/NN                               the/DT      like/IN  
                                    |    
                                  case   
                                    |    
                                 for/IN  



      ROOT      
        |       
       NP       
     ╭╶╶╶╶╶╶╶╮  
    NNS      .  
     |       |  
  Thanks     !  



Thanks/NNS
     |    
    punct 
   |   
  !/.  

About

A small tool to draw a only-text tree as the result of stanford coreNLP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages