New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to the PresidioSentenceGenerator #72
Open
omri374
wants to merge
41
commits into
master
Choose a base branch
from
fake-record-generator
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map NATIONALITY entity to NRP not to LOCATION Change dict literals to dict constructors to improve readability
Asa higher level abstraction over PresidioDataGenerator for utilising all templates and providers in this library
…nguage for predictions
…fault AnalyzerEngine Validate chosen language is available in provided AnalyzerEngine
Map NATIONALITY entity to NRP not to LOCATION Change dict literals to dict constructors to improve readability
Asa higher level abstraction over PresidioDataGenerator for utilising all templates and providers in this library
…nguage for predictions
…fault AnalyzerEngine Validate chosen language is available in provided AnalyzerEngine
Update PresidioDataGenerator tests to make stronger assertions about contents of results
Update PresidioFakeRecordGenerator to use ReligionProvider
…-record-generator # Conflicts: # presidio_evaluator/data_generator/__init__.py # presidio_evaluator/data_generator/faker_extensions/providers.py # presidio_evaluator/data_generator/presidio_data_generator.py
Co-authored-by: melmatlis <93650751+melmatlis@users.noreply.github.com>
…lt providers and templates
…-record-generator
…ator # Conflicts: # presidio_evaluator/data_generator/presidio_data_generator.py
Rename PresidioFakeRecordGenerator to PresidioSentenceFaker to distinguish it from `RecordGenerator`
Move functions for loading data from FakeNameGenerator.com in faker format into new datasets.py module Move logic for choosing templates out of SentenceFaker into PresidioSentenceFaker Remove generic read file function Add missing HospitalProvider Update Recognizer tests to use PresidioSentenceProvider
Make single module to hold all sentence semantic dependency logic for Faker, including SentenceFaker, RecordGenerator and RecordsFaker
…aker Rename faker_to_presidio_entity_type to ENTITY_TYPE_MAPPING Make presidio_templates_file_path and presidio_additional_entity_providers available from package Update Data Generation README to outline choices
PresidioSentenceFaker
…cord-generator # Conflicts: # presidio_evaluator/data_generator/faker_extensions/sentences.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Continuation of the work on PR #50 by @Robbie-Palmer
FakerSpan
,FakerSpanResult
and updated code to useSpan
andInputSample
respectively instead, as discussed in PR PresidioSentenceFaker #50.SentenceFaker
to inherit fromFaker
instead of using composition.SentenceFaker
in the default option (RecordGenerator
is instantiated if records are passed, otherwise aSpanGenerator
is instantiated.)black
on all files I touched (which caused a lot of the changes in this PR)