This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import PyPDF2 | |
import spacy | |
class PdfParser(): | |
def __init__(self, file_path): | |
self.file_path = file_path | |
def pdf_reader(self) -> str: | |
content = '' | |
opener = open(self.file_path, 'rb') |