update README.md

This commit is contained in:
imClumsyPanda 2023-05-13 11:27:46 +08:00
parent 1a1989d860
commit 5b17cfc2e7
2 changed files with 0 additions and 24 deletions

View File

@ -1,12 +0,0 @@
from configs.model_config import *
import nltk
nltk.data.path = [NLTK_DATA_PATH] + nltk.data.path
filepath = "./img/test.jpg"
from loader import UnstructuredPaddleImageLoader
loader = UnstructuredPaddleImageLoader(filepath, mode="elements")
docs = loader.load()
for doc in docs:
print(doc)

View File

@ -1,12 +0,0 @@
from configs.model_config import *
import nltk
nltk.data.path = [NLTK_DATA_PATH] + nltk.data.path
filepath = "docs/test.pdf"
from loader import UnstructuredPaddlePDFLoader
loader = UnstructuredPaddlePDFLoader(filepath, mode="elements")
docs = loader.load()
for doc in docs:
print(doc)