arogeriogel commited on
Commit
82660a6
·
unverified ·
1 Parent(s): e98202a

including metadata

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -102,7 +102,7 @@ def analyze_text():
102
 
103
 
104
  def include_manual_input(analyze_results):
105
- analyze_results_extended=[]
106
  logging.info(
107
  f"analyse results before adding extra words: {analyze_results}\n"
108
  )
@@ -113,10 +113,14 @@ def include_manual_input(analyze_results):
113
  for entry in index_entries:
114
  start=entry[0]
115
  end=entry[1]
116
- analyze_results_extended.append("type: MANUAL ADD, start: {}, end: {}, score: 1.0".format(start,end))
 
117
  logging.info(
118
  f"analyse results after adding allowed words: {analyze_results_extended}\n"
119
  )
 
 
 
120
  return analyze_results_extended
121
 
122
  def exclude_manual_input(analyze_results):
 
102
 
103
 
104
  def include_manual_input(analyze_results):
105
+ analyze_results_extended=analyze_results
106
  logging.info(
107
  f"analyse results before adding extra words: {analyze_results}\n"
108
  )
 
113
  for entry in index_entries:
114
  start=entry[0]
115
  end=entry[1]
116
+
117
+ analyze_results_extended.append({"type": "MANUAL ADD", "start": start, "end": end, "score": 1.0})
118
  logging.info(
119
  f"analyse results after adding allowed words: {analyze_results_extended}\n"
120
  )
121
+ logging.info(
122
+ f"type of entries in results: {type(analyze_results[0])}\n"
123
+ )
124
  return analyze_results_extended
125
 
126
  def exclude_manual_input(analyze_results):