Code Monkey home page Code Monkey logo

edyvision / pii-codex Goto Github PK

View Code? Open in Web Editor NEW
60.0 3.0 7.0 675 KB

A research python package for detecting, categorizing, and assessing the severity of personal identifiable information (PII)

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.52% Python 51.89% Jupyter Notebook 44.23% Shell 0.04% TeX 3.31%
personal-identifiable-information pii pii-detection poetry presidio python3 research research-software research-tool analysis

pii-codex's Introduction

Hi there, I'm Eidan ๐Ÿ‘‹

Research Gate LinkedIn Polywork Medium LinkTree Google Scholar

By day I'm an engineer, and by night, I'm a writer, researcher, and computer science professor. My most recent research dives into psychological and social factors in information disclosure patterns on social media. Research interests include neuropsychological and socio-cultural factors in human-computer interactions and AI, computational social science, social cybersecurity, social ideation systems and communities, and ethics in technology. In the past, I've worked on several serverless and website projects that I've since open-sourced. My work experience includes enterprise API development, distributed network and sensor systems, flight training simulators, e-commerce solutions, and benefit administration platforms.

Follow me on LinkedIn or here on GitHub for updates!

๐Ÿ’ป Expertise

React Python Nodejs Postgres MongoDB AWS JWT Jest Heroku Salesforce GitHub Github Actions Canva VSCode Pycharm Notion Overleaf LATEX Snyk DataDog Splunk Jira Spring Sci Kit Learn SciPy Pandas


๐Ÿ› ๏ธ Current Projects

๐Ÿ““ Past Works

pii-codex's People

Contributors

edyvision avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pii-codex's Issues

Error while detecting US SSN and US Bank account number.

It seems that when US_SSN is detected in the sentence it always errors to the below error message:

"Exception: An error occurred while processing the detected entity US_SSN"

Traceback:

  File "C:\Python_Local\Cerebro\cerebro-flask-api\venv\lib\site-packages\pii_codex\services\analysis_service.py", line 75, in analyze_item
    analysis, sanitized_text = self._perform_text_analysis(
  File "C:\Python_Local\Cerebro\cerebro-flask-api\venv\lib\site-packages\pii_codex\services\analysis_service.py", line 280, in _perform_text_analysis
Exception: An error occurred while processing the detected entity US_SSN

After looking closer in the code it seems that this entity type is missing from the csv attached in the data folder.

file: pii_mapping_util.py

    def __init__(self):
        self._pii_mapping_data_frame = open_pii_type_mapping_csv("v1")

file: file_util.py

    file_path = get_relative_path(
        f"../data/{mapping_file_version}/{mapping_file_name}.csv"
    )

The file contains PII_Type = "US_SOCIAL_SECURITY_NUMBER" instead of "US_SSN"

Same exception happens for bank number as well:
Exception: An error occurred while processing the detected entity US_BANK_NUMBER

  File "C:\Python_Local\Cerebro\cerebro-flask-api\venv\lib\site-packages\pii_codex\services\assessment_service.py", line 21, in assess_pii_type
    return PII_MAPPER.map_pii_type(detected_pii_type)
  File "C:\Python_Local\Cerebro\cerebro-flask-api\venv\lib\site-packages\pii_codex\utils\pii_mapping_util.py", line 45, in map_pii_type
    raise Exception(
Exception: An error occurred while processing the detected entity US_BANK_NUMBER

The file contains PII_Type = "US_BANK_ACCOUNT_NUMBER" instead of "US_BANK_NUMBER".

Hope this helps.

Thank you

Error in ASCII codec can decode byte

I'm facing a problem on linux in config > PII_MAPPER() > open_pii_type_mapping_csv func. In that pd.read_csv(file) gives UnicodeDecodeError: 'ascii' codec cannot decode byte 0xe2 in position 2598:ordinal not in range(128).

If anyone knows about this, Please respond to this issue

Thank you

Cloud examples

hi,

Do you guys have examples for docs/UC1_Converting_Existing_Detections_With_Adapters.png?

Thanks
GP

Thank you

Just wanted to write a note of thanks for this work. This has been incredibly useful for us in designing a tool that sniffs out the PIIs from data storage.

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.