معرفی شرکت ها


acryl-datahub-classify-0.0.4


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Library to predict info types for DataHub
ویژگی مقدار
سیستم عامل -
نام فایل acryl-datahub-classify-0.0.4
نام acryl-datahub-classify
نسخه کتابخانه 0.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده -
آدرس صفحه اصلی https://datahubproject.io/
آدرس اینترنتی https://pypi.org/project/acryl-datahub-classify/
مجوز Apache License 2.0
# datahub-classify Predict InfoTypes for [DataHub](https://datahubproject.io/). ## Installation `python3 -m pip install --upgrade datahub-classify` ## API `predict_infotypes` This API populates infotype proposal(s) for each input column by using metadata, values & confidence level threshold. Following are the input and output contract ### API Input API expects following parameters in the output - `column_infos` - This is a list of ColumnInfo objects. Each ColumnInfo object contains metadata (col_name, description, datatype, etc) and values of a column. - `confidence_level_threshold` - If the infotype prediction confidence is greater than the confidence threshold then the prediction is considered as a proposal. This is the common threshold for all infotypes. - `global_config` - This dictionary contains configuration details about all supported infotypes. Refer section [Infotype Configuration](#infotype-configuration) for more information. - `infotypes` - This is a list of infotypes that is to be processed. This is an optional argument, if specified then it will override the default list of all supported infotypes. If user is interested in only few infotypes then this list can be specified with correct infotype names. Infotype names are case sensitive. ### API Output API returns a list of ColumnInfo objects of length same as input ColumnInfo objects list. A populated list of Infotype proposal(s), if any, is added in the ColumnInfo object itself with a variable name as `infotype_proposals`. The infotype_proposals list contains InfotypeProposal objects which has following information - `infotype` - A proposed infotype name. - `confidence_level` - Overall confidence of the infotype proposal. - `debug_info` - confidence score of each prediction factor involved in the overall confidence score calculation. Refer section [Debug Information](#debug-information) for more information. **Convention:** If `infotype_proposals` list is non-empty then it indicates that there is at least one infotype proposal with confidence greater than `confidence_level_threshold`. ## Infotype Configuration Infotype configuration is a dictionary with all infotypes at root level key. Each infotype has following configurable parameters (value of each parameter is a dictionary) - `Prediction_Factors_and_Weights` - This is a dictionary that specifies the weight of each prediction factor which will be used in the final confidence calculation. Following are the prediction factors 1. Name 2. Description 3. Datatype 4. Values - `Name` - regex list which is to be matched against column name - `Description` - regex list which is to be matched against column description - `Datatype` - list of datatypes to be matched against column datatype - `Values` - this dictionary contains following information 1. `prediction_type` - values evaluation model (regex/library) 2. `regex` - regex list which is to be matched against column values 3. `library` - library name which is to be used to evaluate column values ### Sample Infotype Configuration Dictionary ```python { '<Infotype1>': { 'Prediction_Factors_and_Weights': { 'Name': 0.4, 'Description': 0, 'Datatype': 0, 'Values': 0.6 }, 'Name': { 'regex': [<regex patterns>] }, 'Description': { 'regex': [<regex patterns>] }, 'Datatype': { 'type': [<list of datatypes>] }, 'Values': { 'prediction_type': 'regex/library', 'regex': [<regex patterns>], 'library': [<library name>] } }, '<Infotype2>': { .. .. .. } } ``` ## Debug Information A debug information is associated with each infotype proposal, it provides details about confidence score from each prediction factor involved in overall confidence score calculation. This is a dictionary with following four prediction factors as key - Name - Description - Datatype - Values ```python { 'Name': 0.4, 'Description': 0.2, 'Values': 0.6, 'Datatype': 0.3 } ``` ## Supported Infotypes 1. Age 2. Gender 3. Person Name / Full Name 4. Email Address 5. Phone Number 6. Street Address 7. Credit-Debit Card Number ## Required Libraries Following libraries are required - Spacy 3.4.1 - phonenumbers 8.12.56 ### Required Spacy model `$ python3 -m spacy download en_core_web_sm` ## Assumptions - If value prediction factor weight is non-zero (indicating values should be used for infotype inspection) then a minimum 50 non-null column values should be present. ## Development ### Set up your Python environment ```sh cd datahub-classify ../gradlew :datahub-classify:installDev # OR pip install -e '.[dev]' source venv/bin/activate ``` ### Runnning tests ```sh pytest tests/ --capture=no --log-cli-level=DEBUG ``` ### Sanity check code before committing ```sh # Assumes: pip install -e '.[dev]' and venv is activated black src/ tests/ isort src/ tests/ flake8 src/ tests/ mypy src/ tests/ ``` ### Build and Test ```sh ../gradlew :datahub-classify:build ``` You can also run these steps via the gradle build: ```sh ../gradlew :datahub-classify:lint ../gradlew :datahub-classify:lintFix ../gradlew :datahub-classify:testQuick ```


نیازمندی

مقدار نام
<=8.13.0,>=8.12.56 phonenumbers
>=1.7.0 vininfo
>=2022.9.0 schwifty
<=3.4.3,>=3.4.1 spacy
>=1.0.23 ipaddress
>=1.17 python-stdnum
>=2.8.1 pytest-cov
<=1.5.1,>=1.2.0 pandas
- scikit-learn
- openpyxl
>=1.17 python-stdnum
<=8.13.0,>=8.12.56 phonenumbers
>=22.1.0 black
<=3.4.3,>=3.4.1 spacy
>=0.981 mypy
>=1.7.0 vininfo
>=1.0.23 ipaddress
>=5.7.0 isort
>=5.1 coverage
>=2022.9.0 schwifty
>=3.8.3 flake8
>=4.3.0 flake8-tidy-imports


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl acryl-datahub-classify-0.0.4:

    pip install acryl-datahub-classify-0.0.4.whl


نصب پکیج tar.gz acryl-datahub-classify-0.0.4:

    pip install acryl-datahub-classify-0.0.4.tar.gz