A dendrogram is a node-link diagram that places leaf nodes of the tree at the same depth. In this example, the classes (leaf nodes) are aligned on the right edge, with the packages (internal nodes) to the left. Data shows the Flare class hierarchy, courtesy Jeff Heer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Like strings(1) but only return stuff that is probably English (or whatever locale you set) | |
TODO: | |
* Add a parameter to ignore punctuation as token counts towards the threshold. | |
e.g. "Foo." vs "Foo........" would both return true. | |
* Add conditional for not counting digit only results if alphanumeric=True in is_natlang() | |
Copyleft 2015 Ian Gallagher <[email protected]> |