This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
38 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from evonote.file_helper.cache_manage import save_used_cache | ||
from evonote.testing.sample_paper import sample_paper | ||
from evonote.transform.build_from_sections import digest_all_descendants, \ | ||
mindtree_from_doc | ||
from evonote.data_cleaning.latex_converter import process_latex_into_standard | ||
|
||
tex = sample_paper | ||
|
||
doc, meta = process_latex_into_standard(tex) | ||
|
||
paper_tree = mindtree_from_doc(doc, meta) | ||
|
||
digest_tree = digest_all_descendants(paper_tree) | ||
|
||
digest_tree.save("AI4Science.enb") | ||
|
||
save_used_cache() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import os | ||
|
||
from evonote.mindtree import Tree | ||
|
||
os.system("python gen_sample_paper_tree.py") | ||
tree = Tree.load("AI4Science.enb") | ||
|
||
tree.show_tree_gui() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
playground/notebook_to_paragraph.py → playground/tree_to_paragraph.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,7 @@ | ||
from evonote.file_helper.cache_manage import save_used_cache, save_cache | ||
from evonote.testing.sample_paper import sample_paper | ||
from evonote.transform.build_from_sections import digest_all_descendants, \ | ||
mindtree_from_doc | ||
from evonote.data_cleaning.latex_converter import process_latex_into_standard | ||
import os | ||
|
||
from evonote.mindtree import Tree | ||
|
||
tex = sample_paper | ||
|
||
doc, meta = process_latex_into_standard(tex) | ||
|
||
paper_tree = mindtree_from_doc(doc, meta) | ||
|
||
digest_tree = digest_all_descendants(paper_tree) | ||
|
||
# Try removing comments to show the tree before digesting | ||
|
||
# paper_tree.show_tree_gui() | ||
|
||
digest_tree.show_tree_gui() | ||
|
||
save_used_cache() | ||
|
||
# Try removing comments to save the tree | ||
|
||
digest_tree.save("AI4Science.enb") | ||
os.system("python gen_sample_paper_tree.py") | ||
tree = Tree.load("AI4Science.enb") | ||
tree.show_tree_gui() |