Coder Social home page Coder Social logo

big5trait's Introduction

big5trait module

使用方法

from big5trait import big5trait
big5trait(要分類的字詞清單, 性格參數, 容許值)
Parameter
  • 要分類的字詞清單 : list of string

    一個list of string, 放入所有要判定的詞

  • 性格參數 : list of float

    要判定的性格的big5參數值,順序是:

    1. Extraversion

    2. Emotional stability

    3. Agreeableness

    4. Conscientiousness

    5. Openness to experience

  • 容許值 : float

    性格參數的容許值

Return
{
	"passed" : 符合此性格的字詞list,
	"failed" : 不符合此性格的字詞list
}

HashDict必須和big5trait.py在同一個資料夾

檔案說明

  • big5trait.py : big5trait模組檔

  • HashDict : hash過的字典

  • cliwc.dic : 繁體中文LIWC字典檔

  • dic2trait.py : 從LIWC字典檔轉為性格參數

  • hashgen.py : 產生hash字典用

big5trait's People

Contributors

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