GithubHelp home page GithubHelp logo

smesa / sentencepersonality Goto Github PK

View Code? Open in Web Editor NEW

This project forked from d2klab/sentencepersonality

0.0 0.0 0.0 11 KB

SentencePersonality computes personality traits, as described in Big5 model, from myPersonality dataset.

Python 100.00%

sentencepersonality's Introduction

SentencePersonality

This package computes personality traits, as described in Big5 model, from myPersonality dataset.

The pipeline is the following:

  • sentence encoding
  • personality traits regression

The logical steps to reproduce the experiment

  1. encode_and_map_sentences.py
    • input:
      • pretrained_bert/multi_cased_L-12_H-768_A-12
      • spacymoji vocabulary
      • myPersonalitySmall/statuses_unicode.txt
      • myPersonalitySmall/big5labels.txt
    • output:
      • train_whole_lines.csv
      • lines_skipped.csv
  2. mse.py
    • input:
      • cls_table.csv
    • output:
      • predictions.txt
      • mse.txt
  3. distributions.py
    • input:
      • predictions.py
      • predictions_eng.py //this file is used for comparison, change bert model model in previous steps
      • lines_skipped.py
      • train_whole_lines.csv
    • output:
      • data distributions as images
      • kullback leibler divergences between multilinglual model and english model

If you want to obtain Carducci et al. results take a look here:

* https://github.com/D2KLab/twitpersonality

If you want to reproduce scores by IBM Personality Insights:

* ibm_insights_script.py
* format the output to compare data distributions

sentencepersonality's People

Contributors

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