top of page

GPTalyze: open-source Github repository for analyzing short text snippets with ChatGPT

Dec 13, 2023
1 min read

The lab recently released the GPTalyze open-source Github repository, written by lab members Michael Khavkin and Danielle Movsowitz

Davidow. The library utilizes ChatGPT's API to analyze short textual snippets, such as tweets, employing ChatGPT's zero-shot-like abilities to summarize the discussed topics in a textual corpus and perform other Natural Language Processing (NLP) tasks, such as sentiment analysis and emotion detection.

ChatGPT has recently emerged as a powerful Large Language Model (LLM), enabling unprecedented and innovative public interaction with generative language AI. These capabilities were not overlooked by the research community, who started leveraging ChatGPT for data analysis of various data sources, including textual unstructured data from social networks, such as Twitter.

We demonstrate two very useful use cases: sentiment analysis and topic extraction. We evaluate the interaction with ChatGPT on a publicly available Twitter dataset containing tweets about the COVID-19 pandemic. More information is available on the dataset's page at Kaggle (filename is "Corona_NLP_train.csv").

Sentiment analysis: We asked ChatGPT to classify each tweet in a sample of 100 tweets discussing COVID-19 to either negative, neutral, or positive sentiment. Using the following confusion matrix, we can deduce that ChatGPT was only moderate in its accuracy, classifying only ~60% of the tweets correctly.

Topic extraction: We asked ChatGPT to extract the three main topics (and their sub-topics) discussed in a batch of 50 random tweets about COVID-19. This task would have been challenging to a human, but it was performed in seconds by ChatGPT with impressive results (we eyeballed the tweets manually to evaluate the received topics, and they corresponded to the returned topics).

 
 
 

Comments


wolfson1.jpg

Contact Us

The lab is located at the Faculty of Engineering, in the Wolfson building for Mechanical Engineering, in the School of Industrial & Intelligent Systems Engineering. To reach our building, enter the campus through Gate 14 on Klausner St., Gate 4 (always open) on George Wise St., or Gate 17. The Wolfson building is marked on the map below. You can also find it as building 34 on the official TAU map.

Chaim Levanon St 30 (Dr. George Wise Street for postal correspondence), Tel Aviv-Yafo, 6997801, Israel

Thanks for submitting!

© 2027 by Tel Aviv University. 

bottom of page