chore: change default query
Browse files
app.py
CHANGED
@@ -108,8 +108,8 @@ def encrypt_doc_fn(doc):
|
|
108 |
client.load()
|
109 |
|
110 |
encrypted_tokens = []
|
111 |
-
tokens = re.findall(r"(\b[\w\.\/\-@]+\b|[\s,.!?;:'\"-]+)", ' '.join(doc))
|
112 |
-
|
113 |
for token in tokens:
|
114 |
if token.strip() and re.match(r"\w+", token):
|
115 |
emb_x = MAPPING_DOC_EMBEDDING[token]
|
|
|
108 |
client.load()
|
109 |
|
110 |
encrypted_tokens = []
|
111 |
+
tokens = re.findall(r"(\b[\w\.\/\-@]+\b|[\s,.!?;:'\"-]+|\$\d+(?:\.\d+)?|\β¬\d+(?:\.\d+)?)", ' '.join(doc))
|
112 |
+
|
113 |
for token in tokens:
|
114 |
if token.strip() and re.match(r"\w+", token):
|
115 |
emb_x = MAPPING_DOC_EMBEDDING[token]
|