Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 15, 2024
1 parent 8411b53 commit c060a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_geometric/nn/nlp/txt2kg.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def add_doc_2_KG(
def get_chunks(s, maxlength):
start = 0
end = 0
while start + maxlength < len(s) and end != -1:
while start + maxlength < len(s) and end != -1:
end = s.rfind(" ", start, start + maxlength + 1)
yield s[start:end]
start = end +1
start = end + 1
yield s[start:]

0 comments on commit c060a10

Please sign in to comment.