Update PreProcessing.py
Browse files- 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
|
| 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
|