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 Jan 8, 2025
1 parent ca970ef commit 19f0bd9
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 @@ -9,7 +9,7 @@

CLIENT = None
GLOBAL_NIM_KEY = ""
SYSTEM_PROMPT = "Please convert the above text into a list of knowledge triples with the form ('entity', 'relation', 'entity'). Seperate each with a new line. Do not output anything else. Try to focus on key triples that form a connected graph.”" #noqa
SYSTEM_PROMPT = "Please convert the above text into a list of knowledge triples with the form ('entity', 'relation', 'entity'). Seperate each with a new line. Do not output anything else. Try to focus on key triples that form a connected graph.”" #noqa


class TXT2KG():
Expand Down Expand Up @@ -92,7 +92,7 @@ def _chunk_to_triples_str_local(self, txt: str) -> str:
# for debug
self.total_chars_parsed += len(txt)
self.time_to_parse += round(time.time() - chunk_start_time, 2)
self.avg_chars_parsed_per_sec = self.total_chars_parsed / self.time_to_parse #noqa
self.avg_chars_parsed_per_sec = self.total_chars_parsed / self.time_to_parse #noqa
return out_str

def add_doc_2_KG(
Expand Down

0 comments on commit 19f0bd9

Please sign in to comment.