Skip to main content

Identify the personality from a given text using (MBTI) Myers-Briggs Personality Type Dataset

Project description

pypersonality

Written in python , Module to identify the personality type from a text given using (MBTI) Myers-Briggs Personality Type Dataset.

How to use it?

Install the module from pypi https://pypi.org/project/pypersonality/

pip install pypersonality

import the module

from pypersonality.personality import PyPersonality

Now you have a text file source, open and read the strings ,read_File_as_list is a function which splits the text files into strings.

dictlist = [{}]
data = read_file_as_list("demo_text/modi.txt")
for line in data:
    dictlist.append(p.get_personality(line))

Now the dictlist list has all the results, May be we need to combine all the dicontry entries

final_results = {}
for dictionary in dictlist:
for key, value in dictionary.items():
if key in final_results:
final_results[key] = value + final_results[key]
else:
final_results[key] = value

the final_results has the personality types identified with the weightage

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypersonality-0.0.4.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypersonality-0.0.4-py3-none-any.whl (4.5 MB view details)

Uploaded Python 3

File details

Details for the file pypersonality-0.0.4.tar.gz.

File metadata

  • Download URL: pypersonality-0.0.4.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pypersonality-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4a748751d0ed031764a9cbb2bef41a2519f7e3e8d0955909f5f52ae8c8dbbcde
MD5 32b5185e5908f791e9f79a6bf3384343
BLAKE2b-256 9959f3e27e65f1057f31b92a1dddb768b56626ffc5ac218c1475259a6e71763b

See more details on using hashes here.

File details

Details for the file pypersonality-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pypersonality-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pypersonality-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c29d6bdb78f0b20256d6ee412d562b8df1a6cdab048577b75d55edafd3cb9a52
MD5 32a97cf4dd747338969b7e1b7886fb54
BLAKE2b-256 b241ef227351898ebc4026271115644c45904ba9604ab1c17610f45384d0b057

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page