Spaces:
Sleeping
Sleeping
Update src/text_processing.py
Browse files- src/text_processing.py +1 -1
src/text_processing.py
CHANGED
@@ -122,7 +122,7 @@ def generate_explaination_for_chunks(chunks, analysis_level='basic', writting_st
|
|
122 |
def text_processing(file_path, analysis_level='basic', writting_style='academic', word_lower_limit = 100, word_upper_limit = 150):
|
123 |
# Trích xuất văn bản từ file PDF
|
124 |
text = extract_text_from_file(file_path=file_path)
|
125 |
-
with open("./text
|
126 |
f.write(text)
|
127 |
# Tách văn bản theo ngữ nghĩa
|
128 |
semantic_chunks = split_text_by_semantics(text)
|
|
|
122 |
def text_processing(file_path, analysis_level='basic', writting_style='academic', word_lower_limit = 100, word_upper_limit = 150):
|
123 |
# Trích xuất văn bản từ file PDF
|
124 |
text = extract_text_from_file(file_path=file_path)
|
125 |
+
with open("./text.txt", "w", encoding="utf-8") as f:
|
126 |
f.write(text)
|
127 |
# Tách văn bản theo ngữ nghĩa
|
128 |
semantic_chunks = split_text_by_semantics(text)
|