Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Update] Optional raw text support #484

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
remove redundent prints
Jn-Huang committed Mar 4, 2024
commit 8f11f22157cb1f231a5dfc2604aba7f5d041e1da
3 changes: 0 additions & 3 deletions gli/io/graph.py
Original file line number Diff line number Diff line change
@@ -334,8 +334,6 @@ def save_homograph(
# Call save_data().
key_to_loc = save_data(f"{name}__graph", save_dir=save_dir, **data)

print(f"{key_to_loc = }")

# Create the metadata dict.
metadata = {"description": description, "data": {}}

@@ -362,7 +360,6 @@ def save_homograph(
# Add the metadata of the raw text
raw_text_dict = {}
for r in raw_text_attrs:
print(f"{r.name = }")
raw_text_dict[r.name] = _attr_to_metadata_dict(key_to_loc,
"RawText", r)
metadata["data"]["RawText"] = raw_text_dict