Spaces:
Running
Running
eljanmahammadli
commited on
Commit
•
4302b12
1
Parent(s):
a17017c
Update app.py
Browse files
app.py
CHANGED
@@ -213,7 +213,7 @@ def update_character_count(text):
|
|
213 |
return f"{len(text)} characters"
|
214 |
|
215 |
|
216 |
-
def split_text_allow_complete_sentences_nltk(text, max_length=256, tolerance=40, min_last_segment_length=150, type_det):
|
217 |
sentences = nltk.sent_tokenize(text)
|
218 |
segments = []
|
219 |
current_segment = []
|
|
|
213 |
return f"{len(text)} characters"
|
214 |
|
215 |
|
216 |
+
def split_text_allow_complete_sentences_nltk(text, max_length=256, tolerance=40, min_last_segment_length=150, type_det = 'bc'):
|
217 |
sentences = nltk.sent_tokenize(text)
|
218 |
segments = []
|
219 |
current_segment = []
|