Update README.md

This commit is contained in:
2025-12-27 03:18:24 -08:00
parent 5cdedc3403
commit 1decc02218
2 changed files with 126 additions and 38 deletions

13
main.py
View File

@@ -51,21 +51,22 @@ class GenerateCypher(PrecompiledProgram):
generate_cypher = GenerateCypher(GenerateCypherConfig())
if __name__ == "__main__":
"""
from pathlib import Path
import json
"""
examples_path = Path(__file__).parent / "examples" / "wikipedia-abstracts-v0_0_1.ndjson"
with open(examples_path, "r") as f:
for line in f:
data = json.loads(line)
text = data["text"]
print(text[:50])
print("TEXT TO PROCESS:\n", text[:50])
cypher = generate_cypher(text=text, neo4j_schema=neo4j.fmt_schema())
neo4j.query(cypher.statement.replace('```', ''))
print("CYPHER STATEMENT:\n", cypher.statement)
"""
schema = neo4j.fmt_schema()
print(schema)
generate_cypher.push_to_hub("farouk1/text-to-cypher", with_code=True, tag="v0.0.4", commit_message="Syntax fix")
schema = neo4j.fmt_schema()
print("SCHEMA:\n", schema)
generate_cypher.push_to_hub("farouk1/text-to-cypher", with_code=True, tag="v0.0.5", commit_message="Update README.md")