Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -175,7 +175,7 @@ def get_splade_lexical_representation(text):
|
|
175 |
for term, weight in sorted_representation:
|
176 |
formatted_output += f"- **{term}**: {weight:.4f}\n"
|
177 |
|
178 |
-
formatted_output += "\n--- Raw
|
179 |
formatted_output += f"Total non-zero terms in vector: {len(indices)}\n"
|
180 |
formatted_output += f"Sparsity: {1 - (len(indices) / tokenizer_splade_lexical.vocab_size):.2%}\n"
|
181 |
|
|
|
175 |
for term, weight in sorted_representation:
|
176 |
formatted_output += f"- **{term}**: {weight:.4f}\n"
|
177 |
|
178 |
+
formatted_output += "\n--- Raw Sparse Vector Info ---\n"
|
179 |
formatted_output += f"Total non-zero terms in vector: {len(indices)}\n"
|
180 |
formatted_output += f"Sparsity: {1 - (len(indices) / tokenizer_splade_lexical.vocab_size):.2%}\n"
|
181 |
|