GPalomeque commited on
Commit
7b2b0c8
·
1 Parent(s): d4dc3a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -57,6 +57,10 @@ def get_entities(example):
57
  if(item["end"]!=next_item["start"]):
58
  output.extend([(example[item["end"]:next_item["start"]], None)])
59
  i=i+1
 
 
 
 
60
  return output
61
 
62
  def greet(name):
 
57
  if(item["end"]!=next_item["start"]):
58
  output.extend([(example[item["end"]:next_item["start"]], None)])
59
  i=i+1
60
+
61
+ if item["end"] < len(example):
62
+ output.extend([(example[item["end"]:len(example)], None)])
63
+
64
  return output
65
 
66
  def greet(name):