https://github.com/twitter/sententree
A novel text visualization technique
https://github.com/twitter/sententree
Last synced: 6 months ago
JSON representation
A novel text visualization technique
- Host: GitHub
- URL: https://github.com/twitter/sententree
- Owner: twitter
- License: apache-2.0
- Created: 2014-08-15T18:35:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-04-10T11:37:45.000Z (over 2 years ago)
- Last Synced: 2025-07-03T04:01:50.782Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 34.1 MB
- Stars: 235
- Watchers: 15
- Forks: 56
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
SentenTree
==========
SentenTree is a novel text visualization technique for summarizing a collection of social media text, i.e. take thousands or more Tweets and summarize what the Tweets are about. The aim of this project was to create a visualization that is cheap to compute but represent the connected thoughts in the words.

[See DEMO](https://twitter.github.io/SentenTree/)
## Author
- Mengdie Hu / [@mengdieh](https://twitter.com/mengdieh)
- Krist Wongsuphasawat / [@kristw](https://twitter.com/kristw)
## Publication
Mengdie Hu, Krist Wongsuphasawat and John Stasko. [Visualizing Social Media Content with SentenTree](http://www.cc.gatech.edu/~stasko/papers/infovis16-sententree.pdf), in IEEE Transactions on Visualization and Computer Graphics 2016.
## Installation
```
npm install sententree
```
## Example usage
```html
```
```js
d3.tsv('data/demo.tsv', (error, data) => {
// data format is [{ id, text, count }]
const model = new SentenTreeBuilder()
.buildModel(data);
new SentenTreeVis('#vis')
// change the number to limit number of output
.data(model.getRenderedGraphs(3))
.on('nodeClick', node => {
console.log('node', node);
});
});
```
## For developers
Install dependencies via npm or yarn
```
$ npm install
```
Then run local instance via
```
$ npm run start
```
## License
Copyright 2014 Twitter, Inc. Licensed under the [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)