Feliks Zaslavskiy commited on
Commit
69cba78
1 Parent(s): 3ffbe9e

update req

Browse files
Files changed (2) hide show
  1. Addr-Test.xlsx +0 -0
  2. app.py +10 -1
Addr-Test.xlsx CHANGED
Binary files a/Addr-Test.xlsx and b/Addr-Test.xlsx differ
 
app.py CHANGED
@@ -15,7 +15,8 @@ model = AlbertModel.from_pretrained('albert-' + model_size + '-v2')
15
 
16
  model_sbert = SentenceTransformer('sentence-transformers/paraphrase-albert-base-v2')
17
  # for regular burt 0.98
18
- similarity_threshold = 0.9
 
19
 
20
  def get_sbert_embedding(input_text):
21
  embedding = model_sbert.encode(input_text)
@@ -171,6 +172,14 @@ if uploaded_file is not None:
171
  st.header('CAQH addresses and matches')
172
  st.dataframe(data_caqh, use_container_width=True)
173
 
 
 
 
 
 
 
 
 
174
  # Create an in-memory binary stream
175
  output = BytesIO()
176
  # Save the DataFrame to the binary stream as an Excel file
 
15
 
16
  model_sbert = SentenceTransformer('sentence-transformers/paraphrase-albert-base-v2')
17
  # for regular burt 0.98
18
+
19
+ similarity_threshold = 0.8
20
 
21
  def get_sbert_embedding(input_text):
22
  embedding = model_sbert.encode(input_text)
 
172
  st.header('CAQH addresses and matches')
173
  st.dataframe(data_caqh, use_container_width=True)
174
 
175
+ # Calculate stats.
176
+ total_items = len(data_caqh)
177
+ item_without_matches = data_caqh['matched-addr'].value_counts().get('No Matches', 0)
178
+ items_with_matches = total_items - item_without_matches;
179
+ percent_matched = (items_with_matches/total_items)*100.0
180
+
181
+ st.write(f"From total matches {total_items}, {items_with_matches} items matched, {item_without_matches} items did not match, {percent_matched:.2f}% matched")
182
+
183
  # Create an in-memory binary stream
184
  output = BytesIO()
185
  # Save the DataFrame to the binary stream as an Excel file