chore: replace members by contract parties, and bob to david
Browse files
app.py
CHANGED
@@ -36,7 +36,9 @@ MAPPING_ANONYMIZED_SENTENCES = read_pickle(MAPPING_ANONYMIZED_SENTENCES_PATH)
|
|
36 |
MAPPING_ENCRYPTED_SENTENCES = read_pickle(MAPPING_ENCRYPTED_SENTENCES_PATH)
|
37 |
ORIGINAL_DOCUMENT = read_txt(ORIGINAL_FILE_PATH).split("\n\n")
|
38 |
MAPPING_DOC_EMBEDDING = read_pickle(MAPPING_DOC_EMBEDDING_PATH)
|
39 |
-
|
|
|
|
|
40 |
|
41 |
# 4. Data Processing and Operations (No specific operations shown here, assuming it's part of anonymizer or client usage)
|
42 |
|
|
|
36 |
MAPPING_ENCRYPTED_SENTENCES = read_pickle(MAPPING_ENCRYPTED_SENTENCES_PATH)
|
37 |
ORIGINAL_DOCUMENT = read_txt(ORIGINAL_FILE_PATH).split("\n\n")
|
38 |
MAPPING_DOC_EMBEDDING = read_pickle(MAPPING_DOC_EMBEDDING_PATH)
|
39 |
+
|
40 |
+
print(f"{ORIGINAL_DOCUMENT=}\n")
|
41 |
+
print(f"{MAPPING_DOC_EMBEDDING.keys()=}")
|
42 |
|
43 |
# 4. Data Processing and Operations (No specific operations shown here, assuming it's part of anonymizer or client usage)
|
44 |
|
files/anonymized_document.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
|
2 |
|
3 |
-
Date:
|
4 |
|
5 |
-
Scope:
|
6 |
|
7 |
-
Amount:
|
8 |
|
9 |
-
Deadline: The logo design must be completed and delivered to
|
10 |
|
11 |
-
Payment terms:
|
|
|
1 |
+
Contract parties: 7f2310e8 and 7166a872
|
2 |
|
3 |
+
Date: c0239016 4f1ec317, e1bfa3a5
|
4 |
|
5 |
+
Scope: 7166a872 agrees to provide graphic design services to 7f2310e8 for the creation of a company logo.
|
6 |
|
7 |
+
Amount: 7f2310e8 agrees to pay 7166a872 500 upon completion and delivery of the logo.
|
8 |
|
9 |
+
Deadline: The logo design must be completed and delivered to 7f2310e8 within 14 days of the contract signing date.
|
10 |
|
11 |
+
Payment terms: 7166a872's international bank account N: df667faf
|
files/mapping_clear_to_anonymized.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e7916c386aa21445d37ad828a7d0dea44d4669ffd29da3203c51aedb7993ee29
|
3 |
+
size 938
|
files/mapping_clear_to_encrypted.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:afb4ae61fee506105f92aa05cc2b6058c3c118c4bcc3f531e1f871a73b388312
|
3 |
+
size 925
|
files/mapping_doc_embedding_path.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:165830bc31b69f2222f1f4f9273567e94698cceacdb9853efeae55969a0f61bd
|
3 |
+
size 203038
|
files/original_document.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
|
2 |
|
3 |
Date: February 06, 2000
|
4 |
|
5 |
Scope: Kate agrees to provide graphic design services to David for the creation of a company logo.
|
6 |
|
7 |
-
Amount:
|
8 |
|
9 |
-
Deadline: The logo design must be completed and delivered to
|
10 |
|
11 |
Payment terms: Kate's international bank account N°: IL150120690000003111111
|
|
|
1 |
+
Contract parties: David and Kate
|
2 |
|
3 |
Date: February 06, 2000
|
4 |
|
5 |
Scope: Kate agrees to provide graphic design services to David for the creation of a company logo.
|
6 |
|
7 |
+
Amount: David agrees to pay Kate $500 upon completion and delivery of the logo.
|
8 |
|
9 |
+
Deadline: The logo design must be completed and delivered to David within 14 days of the contract signing date.
|
10 |
|
11 |
Payment terms: Kate's international bank account N°: IL150120690000003111111
|
files/original_document_uuid_mapping.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
-
"06": "
|
3 |
-
"2000": "
|
4 |
-
"David": "
|
5 |
-
"February": "
|
6 |
-
"IL150120690000003111111": "
|
7 |
-
"Kate": "
|
8 |
}
|
|
|
1 |
{
|
2 |
+
"06": "4f1ec317",
|
3 |
+
"2000": "e1bfa3a5",
|
4 |
+
"David": "7f2310e8",
|
5 |
+
"February": "c0239016",
|
6 |
+
"IL150120690000003111111": "df667faf",
|
7 |
+
"Kate": "7166a872"
|
8 |
}
|
utils_demo.py
CHANGED
@@ -60,7 +60,6 @@ PUNCTUATION_LIST = list(string.punctuation)
|
|
60 |
PUNCTUATION_LIST.remove("%")
|
61 |
PUNCTUATION_LIST.remove("$")
|
62 |
PUNCTUATION_LIST = "".join(PUNCTUATION_LIST) + '°'
|
63 |
-
print(f'{PUNCTUATION_LIST=}')
|
64 |
|
65 |
|
66 |
def clean_directory() -> None:
|
|
|
60 |
PUNCTUATION_LIST.remove("%")
|
61 |
PUNCTUATION_LIST.remove("$")
|
62 |
PUNCTUATION_LIST = "".join(PUNCTUATION_LIST) + '°'
|
|
|
63 |
|
64 |
|
65 |
def clean_directory() -> None:
|