Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
495891a
1 Parent(s): dacf87d

chnaging output datframe in coherence

Browse files
Files changed (2) hide show
  1. appStore/coherence.py +2 -1
  2. paramconfig.cfg +3 -3
appStore/coherence.py CHANGED
@@ -128,7 +128,8 @@ def app():
128
  max_seq_len=max_seq_len, useQueryCheck=False)
129
  raw_output = runSemanticPipeline(pipeline=semanticsearch_pipeline,queries=sent_labels)
130
  results_df = process_semantic_output(raw_output)
131
- AgGrid(results_df, reload_data = False, update_mode="value_changed",
 
132
  columns_auto_size_mode = ColumnsAutoSizeMode.FIT_CONTENTS)
133
 
134
  else:
 
128
  max_seq_len=max_seq_len, useQueryCheck=False)
129
  raw_output = runSemanticPipeline(pipeline=semanticsearch_pipeline,queries=sent_labels)
130
  results_df = process_semantic_output(raw_output)
131
+ data = results_df.drop(['answer','answer_offset','context_offset','context','retriever_score'])
132
+ AgGrid(data, reload_data = False, update_mode="value_changed",
133
  columns_auto_size_mode = ColumnsAutoSizeMode.FIT_CONTENTS)
134
 
135
  else:
paramconfig.cfg CHANGED
@@ -42,8 +42,8 @@ RETRIEVER_FORMAT = sentence_transformers
42
  RETRIEVER_EMB_LAYER = -1
43
  EMBEDDING_DIM = 384
44
  THRESHOLD = 0.55
45
- SPLIT_BY = sentence
46
- SPLIT_LENGTH = 3
47
- SPLIT_OVERLAP = 0
48
  RESPECT_SENTENCE_BOUNDARY = 1
49
  REMOVE_PUNC = 0
 
42
  RETRIEVER_EMB_LAYER = -1
43
  EMBEDDING_DIM = 384
44
  THRESHOLD = 0.55
45
+ SPLIT_BY = word
46
+ SPLIT_LENGTH = 120
47
+ SPLIT_OVERLAP = 10
48
  RESPECT_SENTENCE_BOUNDARY = 1
49
  REMOVE_PUNC = 0