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
Release history Release notifications | RSS feed
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.3.tar.gz
(4.4 MB
view hashes)
Built Distribution
Close
Hashes for pypersonality-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5337b56ca4ac908a7ba3688b459035406021954cb6e9cbd88e1ef13edd39ce9 |
|
MD5 | 81509852cac917b5a43863fbe74e359b |
|
BLAKE2b-256 | 75414b195cc6faab983383c7a2915af5b5fad0d40823b616c4049d73c4366caf |