Update README.md
This commit is contained in:
13
main.py
13
main.py
@@ -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")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user