Fall 2024 GRA with Wenjun - Dementia + LLMs

Fall 2024 GRA with Wenjun - Dementia + LLMs

23 bookmarks
Custom sorting
6. Learning to Classify Text
6. Learning to Classify Text
2.2   Identifying Dialogue Act Types When processing dialogue, it can be useful to think of utterances as a type of action performed by the speaker. This interpretation is most straightforward for performative statements such as "I forgive you" or "I bet you can't climb that hill." But greetings, questions, answers, assertions, and clarifications can all be thought of as types of speech-based actions. Recognizing the dialogue acts underlying the utterances in a dialogue can be an important first step in understanding the conversation. The NPS Chat Corpus, which was demonstrated in 1, consists of over 10,000 posts from instant messaging sessions. These posts have all been labeled with one of 15 dialogue act types, such as "Statement," "Emotion," "ynQuestion", and "Continuer." We can therefore use this data to build a classifier that can identify the dialogue act types for new instant messaging posts. The first step is to extract the basic messaging data. We will call xml_posts() to get a data structure representing the XML annotation for each post:   >>> posts = nltk.corpus.nps_chat.xml_posts()[:10000] Next, we'll define a simple feature extractor that checks what words the post contains:   >>> def dialogue_act_features(post): ... features = {} ... for word in nltk.word_tokenize(post): ... features['contains({})'.format(word.lower())] = True ... return features Finally, we construct the training and testing data by applying the feature extractor to each post (using post.get('class') to get a post's dialogue act type), and create a new classifier:   >>> featuresets = [(dialogue_act_features(post.text), post.get('class')) ... for post in posts] >>> size = int(len(featuresets) * 0.1) >>> train_set, test_set = featuresets[size:], featuresets[:size] >>> classifier = nltk.NaiveBayesClassifier.train(train_set) >>> print(nltk.classify.accuracy(classifier, test_set)) 0.67
·nltk.org·
6. Learning to Classify Text
Papers with Code - MELD Dataset
Papers with Code - MELD Dataset
Multimodal EmotionLines Dataset (MELD) has been created by enhancing and extending EmotionLines dataset. MELD contains the same dialogue instances available in EmotionLines, but it also encompasses audio and visual modality along with text. MELD has more than 1400 dialogues and 13000 utterances from Friends TV series. Multiple speakers participated in the dialogues. Each utterance in a dialogue has been labeled by any of these seven emotions -- Anger, Disgust, Sadness, Joy, Neutral, Surprise and Fear. MELD also has sentiment (positive, negative and neutral) annotation for each utterance.
·paperswithcode.com·
Papers with Code - MELD Dataset
macabdul9/CASA-Dialogue-Act-Classifier: PyTorch implementation of the paper "Dialogue Act Classification with Context-Aware Self-Attention" for dialogue act classification with a generic dataset class and PyTorch-Lightning trainer
macabdul9/CASA-Dialogue-Act-Classifier: PyTorch implementation of the paper "Dialogue Act Classification with Context-Aware Self-Attention" for dialogue act classification with a generic dataset class and PyTorch-Lightning trainer
PyTorch implementation of the paper "Dialogue Act Classification with Context-Aware Self-Attention" for dialogue act classification with a generic dataset class and PyTorch-Lightning trai...
·github.com·
macabdul9/CASA-Dialogue-Act-Classifier: PyTorch implementation of the paper "Dialogue Act Classification with Context-Aware Self-Attention" for dialogue act classification with a generic dataset class and PyTorch-Lightning trainer
Adrian | The Web Scraping Guy
Adrian | The Web Scraping Guy
I'm Adrian - I build custom web scrapers for businesses and individuals.
·thewebscrapingguy.com·
Adrian | The Web Scraping Guy
When you feel old and just gotta say Fuck
When you feel old and just gotta say Fuck
When you look at kids nowadays and see their shitty music you can't help but think of how everything is old and you just gotta say Fuck, Im Old.
·reddit.com·
When you feel old and just gotta say Fuck
Academic Torrents
Academic Torrents
A distributed system for sharing enormous datasets - for researchers, by researchers. The result is a scalable, secure, and fault-tolerant repository for data, with blazing fast download speeds.
·academictorrents.com·
Academic Torrents
Table talk for those already are, or soon to be, a Traditional age 59+ retiree
Table talk for those already are, or soon to be, a Traditional age 59+ retiree
Table talk for those already are, or soon to be, a Traditional age 59+ retiree. Imagine gathering around a table, with favorite drink in hand and talking with older friends/acquaintances. We will share our challenges, talk about our life & family, discuss the money, etc. No politics, nsfw, etc - to keep our blood pressure down :-) **For those who retired at 59+ yrs old and people 50+ that are planning on retiring at 59+** See the rules, MUST JOIN to comment/post. USA focused but all welcome.
·reddit.com·
Table talk for those already are, or soon to be, a Traditional age 59+ retiree
Caregiver Forum and Support Group - AgingCare.com
Caregiver Forum and Support Group - AgingCare.com
Caregiver forum and support group providing caregiving advice and tips on elder care, caring for a parent, caring for a spouse and other senior health issues.
·agingcare.com·
Caregiver Forum and Support Group - AgingCare.com
Senior Forums
Senior Forums
Online community for senior citizens and baby boomers.
·seniorforums.com·
Senior Forums