Skip to content

Commit

Permalink
Merge pull request #86 from simuarc/master
Browse files Browse the repository at this point in the history
add pre-req for notebooks
  • Loading branch information
omri374 authored Nov 2, 2023
2 parents 864550b + ff853fb commit e5d2e57
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 5 deletions.
14 changes: 13 additions & 1 deletion notebooks/1_Generate_data.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# install presidio via pip if not yet installed\n",
"\n",
"#!pip install presidio-analyzer\n",
"#!pip install presidio-evaluator"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -576,4 +588,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
14 changes: 13 additions & 1 deletion notebooks/3_Split_by_pattern_#.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
"This is different from the normal split since we don't want sentences generated from the same pattern to be in more than one set. (Applicable only if the dataset was generated from templates)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# install presidio via pip if not yet installed\n",
"\n",
"#!pip install presidio-analyzer\n",
"#!pip install presidio-evaluator"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -167,4 +179,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
15 changes: 14 additions & 1 deletion notebooks/4_Evaluate_Presidio_Analyzer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
"Evaluate Presidio Analyzer using the Presidio Evaluator framework"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b946feda",
"metadata": {},
"outputs": [],
"source": [
"# install presidio via pip if not yet installed\n",
"\n",
"#!pip install presidio-analyzer\n",
"#!pip install presidio-evaluator"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -288,4 +301,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
9 changes: 7 additions & 2 deletions notebooks/5_Pseudonymization_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
"# install presidio via pip if not yet installed\n",
"\n",
"#!pip install presidio-analyzer\n",
"#!pip install presidio-anonymizer"
"#!pip install presidio-anonymizer\n",
"#!pip install presidio-evaluator\n",
"\n",
"# install trained model for pipeline\n",
"\n",
"#!python -m spacy download en_core_web_sm"
]
},
{
Expand Down Expand Up @@ -194,4 +199,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}

0 comments on commit e5d2e57

Please sign in to comment.