-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.py
25 lines (23 loc) · 821 Bytes
/
demo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Demo
# This demo shows how to deidentify a toy dataset using Deidentifier
import time
import Deidentifier
def main():
'''
Deidentify the toy dataset "mabaoguo"
'''
inputFolder = "dataset/mabaoguo"
outputFolder = "dataset/mabaoguo_deidentified"
scriptFile = "mabaoguo.script"
print("Deidentify the dataset")
print("Original Dataset: {}".format(inputFolder))
print("Deidentified Dataset: {}".format(outputFolder))
tic = time.time()
deidentifier = Deidentifier.DatasetDeidentifier(inputFolder,
outputFolder,
scriptFile)
deidentifier.deidentifyDataset()
toc = time.time()
print("Time Elapsed {0} seconds".format(toc - tic))
if __name__ == "__main__":
main()