logger
Browse files
utils.py
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
import os
|
2 |
import pandas as pd
|
|
|
3 |
from PyPDF2 import PdfReader
|
4 |
from lingtrain_aligner import preprocessor, splitter, aligner, resolver, reader, vis_helper
|
5 |
|
|
|
|
|
|
|
|
|
6 |
def pdf_to_text(pdf_path):
|
7 |
text = ""
|
8 |
with open(pdf_path, "rb") as file:
|
|
|
1 |
import os
|
2 |
import pandas as pd
|
3 |
+
import logging
|
4 |
from PyPDF2 import PdfReader
|
5 |
from lingtrain_aligner import preprocessor, splitter, aligner, resolver, reader, vis_helper
|
6 |
|
7 |
+
# Configure logging
|
8 |
+
logging.basicConfig(level=logging.INFO)
|
9 |
+
logger = logging.getLogger(__name__)
|
10 |
+
|
11 |
def pdf_to_text(pdf_path):
|
12 |
text = ""
|
13 |
with open(pdf_path, "rb") as file:
|