Skip to content
A novel text visualization technique
JavaScript Python HTML
Branch: master
Clone or download
Latest commit 7495c05 Oct 18, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode refactor core Feb 9, 2017
archive remove old files Mar 15, 2017
demo
dist 1.0.0 Oct 18, 2017
images
src
.babelrc
.bowerrc
.eslintrc.js
.gitignore working on graphbuilder Feb 9, 2017
CHANGELOG.md update change log Oct 18, 2017
LICENSE fresh repo Feb 3, 2017
README.md add demo data Jul 28, 2017
gulpfile.babel.js refactored code working with slightly different results Feb 25, 2017
karma.conf.js graph appears Feb 11, 2017
package.json
webpack.config.demo.js
webpack.config.js
webpack.config.standalone.js
yarn.lock configure bundling as lib Feb 24, 2017

README.md

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.

SentenTree example

See DEMO

Author

Publication

Mengdie Hu, Krist Wongsuphasawat and John Stasko. Visualizing Social Media Content with SentenTree, in IEEE Transactions on Visualization and Computer Graphics 2016.

Installation

npm install sententree

Example usage

<div id="vis"></div>
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

You can’t perform that action at this time.