Giter Site home page Giter Site logo

seminar-chatbot's Introduction

Seminar Chatbot - Extracting the personality of a person from a chat conversation

The purpose of this project is to extract the personality of a person using Transformers on labeled text data of the Big Five model.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

conda create --name <env> --file requirements.txt
or
install pandas, numpy, pytorch, transformers, simpletransformers, (optional) ktrain

Usage

Data can be found in the data folder. There is 3 datasets:

Essays
FriendsPersonality (but finally not used)
myPersonality

Source code can be found in the src folder.

  • Useful code, result used for the paper:
    • data.py: contains code to preprocess and format the data
    • simpletransformers_train.py: file used to train every model with different parameters. Almost all good results come from this file
    • simpletransformers.ipynb: Test of simpletransformers before implementation in the python file
    • Seminar_Chatbot_Demo.ipynb: File used for the demo, using the model of cCON and cEXT, on google colab.
    • main.py: self-made training using RoBERTa model
    • predict.py: predict data using model get from main.py
  • Test code, finally not used for the paper:
    • ktrain.ipynb and ktrainv2.ipynb: Test of using the ktrain library
    • test1.ipynb, test2.ipynb, v1.ipynb, v2.ipynb: Test file of different model

To test the training, use simpletransformers_train.py and uncomment / change the different array at the beginning of the file. To test a model, use Seminar_Chatbot_Demo.ipynb and change the folder dir and the name of the model when creating ClassificationModel

Authors

  • Thomas Schaller

License

This project is licensed under the MIT License

Acknowledgments

This is paper is a student work, written for Seminar "Chatbots and Conversational Agents" of the university of Fribourg, under the supervision of Jacky Casas and Prof. Dr. Elena Mugellini, HumanTech Institute, University of Applied Sciences of Western Switzerland, Switzerland, 2020.

seminar-chatbot's People

Contributors

thomasschaller1 avatar

Watchers

James Cloos 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.