Hieucyber2208 commited on
Commit
2ab7f43
·
verified ·
1 Parent(s): 53b247a

Update src/text_processing.py

Browse files
Files changed (1) hide show
  1. 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/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)
 
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)