domenicrosati commited on
Commit
29232c3
Β·
1 Parent(s): 4b582d1

abstract snip

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -116,7 +116,7 @@ def find_source(text, docs, matched):
116
 
117
  context = remove_html(doc[3]).replace('<strong class="highlight">', '').replace('</strong>', '')
118
  if sent_loc:
119
- context_len = 2
120
  sent_beg = sent_loc - context_len
121
  if sent_beg <= 0: sent_beg = 0
122
  sent_end = sent_loc + context_len
 
116
 
117
  context = remove_html(doc[3]).replace('<strong class="highlight">', '').replace('</strong>', '')
118
  if sent_loc:
119
+ context_len = 3
120
  sent_beg = sent_loc - context_len
121
  if sent_beg <= 0: sent_beg = 0
122
  sent_end = sent_loc + context_len