Skip to content

Commit

Permalink
Merge pull request #1 from EmbraceLife/main
Browse files Browse the repository at this point in the history
make sure overlap is implemented
  • Loading branch information
whitead authored Feb 10, 2023
2 parents 7a97725 + 9051b5f commit f732ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paperqa/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def parse_pdf(path, citation, key, chunk_chars=4000, overlap=50):
key=f"{key} pages {pg}",
)
)
split = str(splits[chunk_chars:overlap])
split = split[chunk_chars - overlap:]
pages = [str(i + 1)]
pdfFileObj.close()
return splits, metadatas
Expand Down

0 comments on commit f732ad3

Please sign in to comment.