Skip to content

Commit

Permalink
Fix formatting issue in semantic_blocks assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
lairgiyassir committed Jul 10, 2024
1 parent 01a9064 commit 97869fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The iText2KG module is the core component of the package, responsible for integr
itext2kg = iText2KG(openai_api_key=OPENAI_API_KEY)

# Format the distilled document into semantic sections.
semantic_blocks = [f"{key} - {value}".replace("{", "[").replace("}", "]") for key, value in distilled_doc]
semantic_blocks = [f"{key} - {value}".replace("{", "[").replace("}", "]") for key, value in distilled_doc.items()]

# Build the knowledge graph using the semantic sections.
global_ent, global_rel = itext2kg.build_graph(sections=semantic_blocks)
Expand Down

0 comments on commit 97869fc

Please sign in to comment.