gkim93 commited on
Commit
cec6d94
·
1 Parent(s): 875863d

Update PreProcessing.py

Browse files
Files changed (1) hide show
  1. PreProcessing.py +1 -1
PreProcessing.py CHANGED
@@ -36,7 +36,7 @@ def execute():
36
  documents.extend(loader.load())
37
  elif file.endswith('.docx') or file.endswith('.doc'):
38
  doc_path = './DataSource/' + file
39
- loader = Docx2txtLoader(doc_path, decoding='latin-1')
40
  documents.extend(loader.load())
41
  elif file.endswith('.txt'):
42
  text_path = './DataSource/' + file
 
36
  documents.extend(loader.load())
37
  elif file.endswith('.docx') or file.endswith('.doc'):
38
  doc_path = './DataSource/' + file
39
+ loader = Docx2txtLoader(doc_path)
40
  documents.extend(loader.load())
41
  elif file.endswith('.txt'):
42
  text_path = './DataSource/' + file