pleonova commited on
Commit
f6458ae
1 Parent(s): af2c86b

Fix nested_sentences

Browse files
Files changed (1) hide show
  1. models.py +1 -1
models.py CHANGED
@@ -20,7 +20,7 @@ def create_nest_sentences(document:str, token_max_length = 1024):
20
  sent.append(sentence)
21
  else:
22
  nested.append(sent)
23
- sent = []
24
  length = 0
25
 
26
  if sent:
20
  sent.append(sentence)
21
  else:
22
  nested.append(sent)
23
+ sent = [sentences]
24
  length = 0
25
 
26
  if sent: