creswick / chatter

A library of Natural Language Processing algorithms for Haskell.
Other
73 stars 24 forks source link

Create visual parse trees from ChunkedSentences #11

Open creswick opened 10 years ago

creswick commented 10 years ago

It would be nice to have visual trees generated from ChunkedSentences, ideally in a way that would work with IHaskell, but just generating PNGs or other open formats would be great.

I envision an API like this:

typeclass ShowTree a where
  showTree :: a -> SomeImageFormat

There shouldn't need to be any IO in that function, but I can imagine other parameters coming into play (resolution, DPI, color palette, etc...) but even a basic approach would be great. This would be primarily for debugging/experimentation.