Coder Social home page Coder Social logo

boostarcher / personalitydiscrimination_chatting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from walleclipse/personalitydiscrimination_chatting

0.0 0.0 0.0 1.53 MB

Personality Representation & Personality based Chatting

JavaScript 4.11% Python 32.67% CSS 9.05% HTML 1.71% Jupyter Notebook 52.46%

personalitydiscrimination_chatting's Introduction

PersonalityDiscrimination_Chatting

Personality Representation & Personality based Chatting

This is a project of the "三个咕咕呆写出了一群bug"(Three heros & A bunch of bug) in Google AI ML Winter Camp. Thanks to my team members!

MBTI Personality can be judged by one's declaration or dialogue. If a chatting machine can learn the speaker's personality, they might be able to make better dialogues.
According to this idea, we make a simple chatting machine. Because we used a simple model and a few dialogue data, the result is not very good, but the idea of chatting machine with personality analysis may be worthwhile.
There are another repo and repo from my teamates.

More details shown in 'PersonalityDiscrimination_Chatting.pdf'

Method

This work mainly consists of two parts, 1. Personality Discriminator: discriminate the speaker's personality according to some input sentences. 2. Chatting Machine: Generate the corresponding response according to the input sentence and the speaker's personality.

  1. Personality Discriminator:

The target of this part is classifying people into 16 distinct personality types across 4 axes, after feeding some dialogues or some declaration (or Twitter, Wechat …) (kaggle MBTI dataset)

We used ELMo pre-trained model, Bi-LSTM encoder and self Attention Mechanisms.

  1. Chatting Machine:

Given a post X= (x_1,x_2,..,x_n ) and a personality type p of the response to be generated, the goal is to generate a response Y= (y_1,y_2,..,y_n ) that is coherent with the personality type p.

About the Code

MBTI_discriminator_torch.py , MBTI_discriminator_bert.py , MBTI_discriminator_lgb.ipynb
All three files are MBTI discrimination model. The first file contains the main model.
dialogue.py
seq2seq conversation model
front
This folder contains the front-end program for chatting machine.

Results

The model outputs both personality scores and dialogue response.

personalitydiscrimination_chatting's People

Contributors

walleclipse 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.