Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICNML
tools
Commits
fc45de4d
Verified
Commit
fc45de4d
authored
3 years ago
by
Marco De Donno
Browse files
Options
Downloads
Patches
Plain Diff
Add the check of the NIST files (Readme and example script)
parent
bb51ad32
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
clean_nist_files/Readme.md
+10
-0
10 additions, 0 deletions
clean_nist_files/Readme.md
clean_nist_files/check_nist_file.py
+11
-0
11 additions, 0 deletions
clean_nist_files/check_nist_file.py
with
21 additions
and
0 deletions
clean_nist_files/Readme.md
+
10
−
0
View file @
fc45de4d
...
...
@@ -157,3 +157,13 @@ Once the script has been read and updated as needed, it can be run with a `pytho
This script will take one directory as input, load all the files, remove all the PII informations, and write the files in a second directory.
# Check the cleaning process
To check the content of the NIST file, use the
`check_nist_file.py`
script.
This file should be updated to point the
`nist_file_path`
to the file on disk.
By printing the
`nist_file`
object, the content of the file is outputted to the console.
All the fields are displayed, on the left the field tag, and on the right the content of the field.
If one field present in the output should be delete, update the
`clean_files.py`
file accordingly.
This diff is collapsed.
Click to expand it.
clean_nist_files/check_nist_file.py
0 → 100644
+
11
−
0
View file @
fc45de4d
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from
NIST
import
NISTf
nist_file_path
=
""
nist_file
=
NISTf
(
nist_file_path
)
print
(
nist_file
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment