1

I am looking for a library to construct a tree from this format (toy example):

(Root
  (Dissimilar 
    (N 
        (Similar    
            (N   
                (Dissimilar 
                    (N  “ also some text that should be added to this node” )
                    (S  “ also some text that should be added to this node” )))
            (S  “also some text … “ )))
    (S 
        (Similar    
            (N  “ also some text that should be added to this node “  )
            (S  “ also some text … “ )))))

Where ( Similar and Dissimilar are just nodes that hold the type of their children)

Also how to construct a tree from this format.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.