-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
Hey @dakrone,
I am particularly interested by the treebank-parser.
One cool representation would be actually a one-to-one translation from the string representation of the tree into a Clojure List, with the first element being the tag and the rest of it the chunk!
This will be visually more understandable, and stick with Lisp's common representation of data in general !
This could be done using some reader-tricks:
(load-string (str "(quote "
(first (treebank-parser ["This is a sentence ."]))
")"))
;;=> (TOP (S (NP (DT This)) (VP (VBZ is) (NP (DT a) (NN sentence))) (. .)))But it would be better to have it generated when the parse is being done...
Whadda ya think ?
Metadata
Metadata
Assignees
Labels
No labels