Giter Site home page Giter Site logo

lightsamurai / aphasia Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.66 MB

Clustering aphasic patients' linguistic production by computational means (Word2vec)

Jupyter Notebook 80.27% Python 19.73%
word2vec semantics nlp python clustering-aphasic-patients aphasia

aphasia's Introduction

Aim of this work is to automatically rank the severeness of anomic aphasia production by applying Word2Vec tasks to our corpus, manually collected from the Aphasia Bank online database (https://aphasia.talkbank.org/) from diagnostic protocols.

We propose two ways to accomplish this task, one very simple and one more elaborated.

The simple approach's code is named aphasia_automatic_diagnosing.ipynb. The script takes a 3-columns input_EN.csv file as input, where the first column is the patient-ID, whereas the second and third column are target/response word pairs. The target is the word which exactly describes the scene (e.g. "ball") and the response is the word the patient produces (e.g. "sphere"). It returns the mean score of all the word pairs for each patients, as a final score for his/her performance. This algorithm works for each language, a suited language model has to be uploaded. The cosine similarity task is ran by the built-in wv.similarity function of Word2Vec, which takes as input our word pairs and gives as output their cosine similarity. More details on the project: https://drive.google.com/file/d/1IQ8PDOVlTTNE6CscvI70yfJL8G-CYuM5/view?usp=sharing

The other approach's materials are to find in the test folder which contains the main.py script to run the code. It computes the scores of single patients, giving as output the list of all patients' scores and the final score for that patient. This is performed while both comparing the w2v similarity scores with the MEN similarity scores dataset but also taking into consideration the difficulty for a word to be produced (i.e. a more common word should be easier to recall than an infrequent one).

aphasia's People

Contributors

hbar-boi avatar lightsamurai avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.