Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,8 +33,6 @@ def clause_segmentation(document):
|
|
33 |
if split_index[index] == split_index[-1]:
|
34 |
current_span = document[split_index[index]:]
|
35 |
clauses.append(current_span)
|
36 |
-
clauses.remove("")
|
37 |
-
clauses.remove(" ")
|
38 |
return clauses
|
39 |
current_span = document[split_index[index]:split_index[index + 1]]
|
40 |
clauses.append(current_span)
|
|
|
33 |
if split_index[index] == split_index[-1]:
|
34 |
current_span = document[split_index[index]:]
|
35 |
clauses.append(current_span)
|
|
|
|
|
36 |
return clauses
|
37 |
current_span = document[split_index[index]:split_index[index + 1]]
|
38 |
clauses.append(current_span)
|