Finley
Yuheng Sun


Hi, this is Finley. I do research on eco-feminism and indegenous worldviews. I prototype to promote equity across different cultures. I’m excited about digital fashion. It’s my goal to get the audience and customers on board in a more accessible and interesting way.

About me
Email
Instagram
YouTube

Finley Yuheng Sun


Hi, this is Finley!
I engage in prototyping to advance equity and craft immersive and engaging digital experiences within the realm of Extended Reality (XR).
I’m excited about digital fashion.
My objective is to engage the audience, the customers in a more accessible and captivating manner.

XR Projects

- Look @ Me
- Inferno, Masion Schiaparelli + DRESSX
- Splash

Speculative Design Projects
- Damless Era, Floating World
- Co-Designed Habitats
- Stump Speech

Game Projects
- Z Parade
- Peachy

UX Projects
- Platanus Nanjing

Playground

- Book Bot
- Lion on the Shoulder

About me



Email
Instagram
YouTube

Book Bot

This project helps users to train their own chatbot based on a pdf file. By doing so, users could have an intriguing conversation with the book. The text generation function is based on the Markov Chain.




Debugging


01 Text Generation Function



02 Extract Text From a PDF file













- Failed to get a json file automatically
Fixed by: Add a main function at the end of the file
main()














- Failed to get rid of the white-space

At this step, I tried to extract text from pdf to generate a dataset.

First, I tried borb, but it revoids all the white-space, hence I switch to PyPDF2. However, I still can’t get rid of the punctuations, that’s for the future iteration.

Then, I import my generate.py file into a bot.py file to activate it on discord.

I change few parts of the code:
  • Add a new function called mainbot to directly load the dictionary.json file(the dataset generated by learn.py, which could split sentences into words and record how many times they show up)
  • Duplicate the bot.py from ChatbotGPT, get rid of OpenAI and make the bot response (import the function mainbot()) put the number of word I want it to response into the bracket)

Finally, @ the bot and trigger it on discord, It could generate sentences based on the pdf I extracted as the dataset. Lowkey talking to the author of that article.







02–17–2023