8000 GitHub - workflowsauce/semantic-tweet-map: Using Sigma JS to map tweets
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

workflowsauce/semantic-tweet-map

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP

This is an in-progress tooklit to take a twitter archive and plot it in 2D, like so:

Preview

To use it:

  1. Get your twitter archive and copy data/tweets.js to the root of this project as tweets.j 6647 son. Modify it to be JSON and not JS

  2. Copy .env.example as .env and add an OpenAI API key.

  3. npm install in root directory

  4. Run npx ts-node embed_tweets.ts to embed the tweets.

  5. Run node elbowCluster.js to cluster the tweets.

  6. Pick one of the cluster sets and rename it to clustered_tweets.json

  7. Run node makeGraph.js to generate the graph data

  8. Open a terminal and cd to packages/demo and npm install and npm start

It should work! If it doesn't, please open an issue.

About

Using Sigma JS to map tweets

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 93.7%
  • HTML 3.0%
  • JavaScript 1.6%
  • CSS 1.5%
  • MDX 0.2%
0