项目作者: OnnoKampman

项目描述 :
API for personality analysis according to Big Five model.
高级语言: Python
项目地址: git://github.com/OnnoKampman/personality-analyzer.git
创建时间: 2019-02-02T09:15:30Z
项目社区:https://github.com/OnnoKampman/personality-analyzer

开源协议:

下载


Personality analyzer

API that predicts personality (according to Big Five model of personality) of someone based on language, speech, and/or appearance.

Only includes language at the moment. The repository contains model training functions as well as pre-trained models.

Getting started

  • Make sure you can run the scripts in the environment specified in the environment.yml file. We recommend creating a virtual environment using Anaconda.
  • Make sure you have downloaded GoogleNews-vectors-negative300.bin and save it in location personality_analyzer/word2vec/model/.
  • In one terminal, run python personality_analyzer/text_personality_api/api.py to start the Flask hosting and listening service.
  • Open another terminal, and run python main.py, which will prompt you for a sentence and returns the personality scores afterwards.

References