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 agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.