This project visualizes the emotional connotation of words using embeddings.
For a given word, we calculate the cosine distance to each emotion (represented by an emoji and description), and use this data to create a Catmull-Rom curve.
- We use OpenAI Embeddings to calculate the semantic similarities. You can find the relevant code in api/scores/route.ts.
- Visualization and animations are powered by Nivo.
This is a Next.js project, bootstrapped with create-next-app
.
To start developing, run:
npm run dev
For more information, see: